View Full Version : Porting Linux code to NT

02-11-2004, 05:40 PM
Dear friends,

While trying to compile a linux code to NT, I get syntax error pointing in gl.h
1>Syntax error : missing ';' before type void
2>'WINGDIAPI': missing storage-class or type specifier.
3> unexpected end of file found.

If possible, please help.

02-11-2004, 08:20 PM
You need to include windows.h before you include gl.h.

02-11-2004, 08:34 PM
For easier portability please check:
glfw, glut and others. (Opengl frameworks that hide plateform dependent code)
also try mingw suite. (gcc land for windows)

Tom Nuydens
02-11-2004, 10:48 PM
Please post questions like these in the beginners forum in the future.

-- Tom