Thread: Mac Terminal
View Single Post

DoubleCap's Avatar
Member Since: Feb 12, 2007
Location: Northeast US
Posts: 552
DoubleCap will become famous soon enough
Mac Specs: MacBook 2GHz/2GB/CD

DoubleCap is offline
Install gcc. Navigate to your folder where the .cpp or .h files are stored.

To compile a prog.cpp, for example:

make prog

... That should make an executable.. then type:


The ./ denotes current directory
QUOTE Thanks