Ahh, but it does. You see, gcc does the same thing that cc does. When you run g++, you are really running gcc, just with a whole lot of arguments to turn C into C++ (C++ uses different libraries and such, but aside from the extensions works the same underneath, but works in a way that is different enough from C that it can't be done all in one command (like ObjC can)). g++ and c++ under Darwin are frontends for gcc and cc, respectively; they make it easy to compile C++ programs.Originally posted by monty
Why did they take out c++ support? Seems kind of silly. gcc will compile c, c++ and objc so why can't cc if it's derived from it?
Yes. That's it. The arguments you can pass are pretty much the same (though there are probably some extra ones relating to C++ specific stuff, but I've never made use of them). Just as a note, you may want to create symlinks to cc and c++ with the names gcc and g++, respectively, since if you ever try to install software it may look for these and not the cc and c++ combo.Originally posted by monty
You're saying all I have to do is run c++ instead of cc??