can't compile examples

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?

stdarg.h is part off gcc headers. Do you have gcc installed?

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.