PDA

View Full Version : Porting Linux code to NT



svd
02-11-2004, 06: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.

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

Ozzy
02-11-2004, 09: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)
hth

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

-- Tom