Sign in to follow this  
xdye9

Need help with VS express and Open GL

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this