Thread: Mac Terminal
View Single Post
novicew

 
novicew's Avatar
 
Member Since: Jan 04, 2006
Location: Hamburg, Germany
Posts: 1,385
novicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to all
Mac Specs: MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)

novicew is offline
Download and install xcode(It comes with loads of developer tools including gcc). Assume your app. is called hello.cpp

In terminal,
$ g++ hello.cpp -o hello -----> this will create an executable file called hello
$ ./hello -----> this will execute the newly created executable file.
QUOTE Thanks