View Full Version : Problems with superbible sourcecode
03-03-2012, 12:51 PM
after changing from superbible 4th edition to 5th I have huge problems with the sample programs in Visual Studio 2010.
I added all library and include files but when I want to debug the programm, I just get over 200 errors with glu.h (see picture).
03-03-2012, 02:45 PM
The picture is not so helpful, because it does not show the first error - which in general is the only relevant one (the rest may be simply followups from the compiler trying to compile as much of the file despite the initial error).
Also, the general way to resolve this sort of problem is to start with another copy of the unmodified source (which presumably you can compile) and incrementally add in one change, build, and repeat until it breaks. The last addition then is the one causing (or exposing) the problem.
03-04-2012, 09:39 AM
that is the first error. I still can not go on working with the book :(
03-04-2012, 01:18 PM
Try to include the glew.h as the first include, a quick google search revealed similar problems with this example from the superbible and the definition for GLAPI can get screwed up.
Also: the first problem occurred in the glu.h, we would need to see from where this got included... Plus, german error messages are only helpful for a minority here I guess ;-)
03-05-2012, 12:28 AM
thanks for your answers. I installed the same version if Visual Studio that is used in the book and it works now. Actually this is not the best, but the easiest way to fix this for me and I can continue my work :)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.