using gcc, g++ outside of xcode on mac
If you have not already done so, you should install the development tools that come with your Mac in one of the OS discs, which include gcc. So gcc and other such programs are standard, but not installed by default (I suppose the thinking behind this choice is that either one does not need them and won't miss them, or he won't have no trouble in installing them when needed).