Advertisement

Nehe's OpenGl MFC Tutorial Error?

Started by March 10, 2001 01:50 PM
0 comments, last by Tigerturd 23 years, 8 months ago
I just downloaded this tutorial and fired it up like an hour ago. Unfotunately for me, the first mfc program in it will not build because it said there is an error in the header file. These are the results: Compiling... StdAfx.cpp c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing '';'' before type ''void'' c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: ''WINGDIAPI'' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found Error executing cl.exe. Results OpenGL.exe - 3 error(s), 0 warning(s) What can I do to fix this?
make sure the line #include is above
#include . This should fix it.
aslo make sure you''re adding all the opengl libs you''re gonna use to your project settings.

Feel free to email me.
[email=JValentine_13@hotmail.com]contact[/email]

This topic is closed to new replies.

Advertisement