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

thestaton

macrumors 6502
Original poster
Jan 19, 2006
478
0
Forgive my ignorance.

I'm new to the programming world, but am progressing pretty quickly.

Right now after I write my program I'm using the terminal to compile the program using...

g++ programname.cpp -o programname.

Everything works great. however I have to go to the folder that the file is in and double click it, in order for it to run.

I've tried using the manual command from the terminal...

programname ; exit;

However I'm getting invalid command.

So is there a way to go on and launch the file from the terminal to save a step?

Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.