View Full Version : GLAPI fails in glu.h
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
Please tell me how that I can solve this problem
01-17-2011, 08:55 AM
Perhaps your headers are not ordered properly.
Try changing the order.
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.
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
02-11-2011, 10:14 AM
Never forget, on windows, to include windows.h before any gl/glu/glut headers.
02-13-2011, 11:59 PM
Thank you very much. I'll try.
02-14-2011, 03:43 AM
I have put <windows.h> on the top, but it still doesn't work.
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.
02-14-2011, 04:24 AM
The first chapter <creating block>. I also tried to use VS2010 and CodeBlock. Although the errors are different.
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.