Porting Linux code to NT

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.

You need to include windows.h before you include gl.h.

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

Please post questions like these in the beginners forum in the future.

– Tom