PDA

View Full Version : VC++ 6 compilation problems



04-10-2002, 06:38 AM
Hello, i'd like to know why appear that errors when i try to compile "red book" code samples:

Compiling...
daerror.cpp
c:\archivos de programa\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
c:\archivos de programa\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
c:\archivos de programa\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

prueba2.exe - 3 error(s), 0 warning(s)

Please, help me!
thanks

DFrey
04-10-2002, 06:58 AM
You need to include windows.h before gl.h. See the errors are clearly indicating that the symbol WINGDIAPI is undefined, and that symbol is defined once you include windows.h
You may also want to define WIN32_LEAN_AND_MEAN before including windows.h as well, just to speed up the building a bit.