Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gekko513

macrumors 603
Oct 16, 2003
6,301
1
It would be easier to help you if you explain a little more about what you're trying to do.

If you want to compile a small, single file, C++ program in a file called test.cpp, you can use the Terminal command g++ like so:

g++ test.cpp -o test

Then you can execute it like so:

./test
 

steelphantom

macrumors 6502a
Oct 15, 2005
555
1
You can use CPP Edit to compile simple, one-file C++ programs, but if you are going to be working on big projects, either use Xcode or the Terminal to compile.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.