problem building on mac os x

i’m playing with the idea of doing a c++ project using panda. to check the installation worked i tried to build the program given in the manual:

#include "pandaFramework.h"
#include "pandaSystem.h"
 
PandaFramework framework;
 
int main(int argc, char *argv[]) {
    //open a new window framework
  framework.open_framework(argc, argv);
    //set the window title to My Panda3D Window
  framework.set_window_title("My Panda3D Window");
    //open the window
  WindowFramework *window = framework.open_window();
 
  //here is room for your own code
 
    //do the main loop, equal to run() in python
  framework.main_loop();
    //close the window framework
  framework.close_framework();
  return (0);
}

but i get 1825 build errors. the errors are all over the place, in standard headers and what appears at first glance to be every header in panda.

i’m seeing a lot of these:

error: ISO C++ standard forbids declaration of 'string' with no type
error: '__istype' was not declared in this scope

so, does anyone know how i need to configure my compiler so i can build this. i’m using xcode 3.1.2 on mac os 10.5.8