# Need help with VS express and Open GL

This topic is 4260 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Ive been reading several forums regarding this error message: ------ Build started: Project: Test, Configuration: Debug Win32 ------ Compiling... CGfxOpenGL.cpp c:\program files\microsoft platform sdk\include\gl\gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft platform sdk\include\gl\gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft platform sdk\include\gl\gl.h(1152) : error C2146: syntax error : missing ';' before identifier 'glAccum' c:\program files\microsoft platform sdk\include\gl\gl.h(1152) : error C2182: 'APIENTRY' : illegal use of type 'void' ........... Test - 146 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== The solution that ussually works is placing "#include <windows.h>" before any other "#include <gl/gl.h>". In this case Ive done it already as well as double checked my code/installed the platform sdk/linked the librarys correctly, and Im still getting this error message. Im currently trying to learn Open GL from a book and have even used the code from the book's cd to check whether if these errors are due to the compiler or the code. Right now Im stuck and need some help to continue learning. I would really appreciate the help.