2
After installing the 'Developer Tools' from the mac os installation DVD, I can now execute gcc /path/to/input/
and create an executable shell script from .c code.
I thought the C++ compiler to create executables was g++, but when I try to use it to compile .cpp files: 'g++ /path/to/file/' it creates the expected a.out file, but when I try to run the new file, my computer uses 'Saturn' by default to open 'a.out' and says that it cannot open the file...
What is Saturn, and why can it not open 'a.out'?
Also, should I be using g++ to compile C++ files, or is there a better compiler that I could be using for that (aside from XCode)?
2Try
g++ directory/file.cpp -o file
– Tomer Vromen – 2012-02-18T23:24:35.397some C++ compilers default to require .so or .dll files at run-time, for things like object construction or exception handling. This seems like that. If so, there's probably a switch you can put in the command to cause the libraries to be statically linked into your executable. – JustJeff – 2012-02-18T23:40:00.377