PDA

View Full Version : linking error!



xuyang
02-21-2002, 02:42 AM
I have a problem: I use vc6.0 to compile the
source file, everytime, every file, the compiler just said like this:

e:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
e:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
e:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found

I have included the header files and added
the lib files into the project|settings|link.
I don't know what is the problem and can't
continue my stuty http://www.opengl.org/discussion_boards/ubb/frown.gif Please help me!

JML
02-21-2002, 05:33 AM
Start with including windows.h before including gl.h

HTH

Jean-Marc

xuyang
02-21-2002, 05:54 AM
Thank you! JML
some source files are downloaded from website, it seems everything has done and I also has included the windows.h but the errors just appear in the gl.h file like above.