View Full Version : can't compile examples
05-09-2011, 08:49 PM
I just bought the Superbible Fourth addition and downloaded the examples. I am running Snow Leopard. The compiled examples run fine. But when I try to compile the source in Xcode I get numerous errors like "stdarg.h No such file or directory", and the same for float.h. It must be something simple, right?
05-12-2011, 02:29 PM
stdarg.h is part off gcc headers. Do you have gcc installed?
05-12-2011, 07:20 PM
Yes, gcc is installed, several versions of it. Looking closer at the compile results I see there are also messages about deprecated functions, so I think the problem is that the examples are old and my development environment is new. Rather than waste more time getting GLUT to work, I found some other OpenGL examples that use Cocoa and compile just fine, so I will skip using GLUT and go straight to Cocoa, which I would have done eventually anyway. Thanks for your reply.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.