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
Post a Comment