osx - how do you use the terminal on mac os 10 to write and compile c++ code? -


how use terminal on mac os 10 write , compile c++ code? have power mac power pc chip/with leopard.

first, make sure you've got apple's developer tools installed. may on mac os x install disk well, if don't feel downloading. (although may older version) after that, cd code , similar this:

g++ -o my_executable my_cpp_code.cpp 

you can run this:

./my_executable 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -