(I am new at this)
In my main class, I’m including the following:
#include <stdlib.h>
#include <stdio.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include “BMPloader.c”
I included made all the necessary links to the openGL include, library and source directories and i included BMPloader.c’s folder in my source directories.
I’m getting the following errors:
1>------ Build started: Project: Lesson1, Configuration: Debug Win32 ------
1> BMPloader.c
1>c:\include\bmploader.c(9): error C2061: syntax error : identifier ‘FILE’
1>c:\include\bmploader.c(9): error C2059: syntax error : ‘;’
1>c:\include\bmploader.c(10): error C2449: found ‘{’ at file scope (missing function header?)
1>c:\include\bmploader.c(23): error C2059: syntax error : ‘}’
1>c:\include\bmploader.c(26): error C2449: found ‘{’ at file scope (missing function header?)
1>c:\include\bmploader.c(34): error C2059: syntax error : ‘}’
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
These syntax errors make no sense since the code is properly written. What else could it be?
I am very new at this, thanks for your help!