View Full Version : GLAPI fails in glu.h

01-16-2011, 07:19 PM
Hi, I am a newbie in OpenGL. I tried to learn OpenGL on Microsoft Visual Studio. However, I got an error about GLAPI stuff in glu.h like indicated in the following site
http://www.sfml-dev.org/forum/viewtopic.php?t=129&sid=910cb17da7973d11ef3807237e 2abb8c

Please tell me how that I can solve this problem

01-17-2011, 07:55 AM
Perhaps your headers are not ordered properly.
Try changing the order.

02-11-2011, 02:22 AM
Which header in which files ? I am pretty much confused since I just follow the code in OpenGL superbible 5th edition.

02-11-2011, 03:03 AM
OK do this get the latest svn version from here and see if this sorts out ur problem.

svn checkout http://oglsuperbible5.googlecode.com/svn/trunk/ oglsuperbible5-read-only

02-11-2011, 09:14 AM
Never forget, on windows, to include windows.h before any gl/glu/glut headers.

02-13-2011, 10:59 PM
Thank you very much. I'll try.

02-14-2011, 02:43 AM
I have put <windows.h> on the top, but it still doesn't work.

02-14-2011, 03:23 AM
Assuming that u are using the latest svn release, could u please let us know which chapter and what project you are running.

02-14-2011, 03:24 AM
The first chapter <creating block>. I also tried to use VS2010 and CodeBlock. Although the errors are different.

02-16-2011, 05:01 AM
It actually works on VS2008 and Codeblocks. But for codeblocks(Linux), we have to manually edit the makefile.
makefile should be an easy task to do.