PDA

View Full Version : GLAPI fails in glu.h



charisma
01-16-2011, 08: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

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

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

mobeen
02-11-2011, 04: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

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

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

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

mobeen
02-14-2011, 04: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.

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

charisma
02-16-2011, 06: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.