PDA

View Full Version : C++



johnnybgood115
April 20th, 2007, 10:21 PM
how do you compile a C++ file??

johnnybgood115
April 20th, 2007, 10:21 PM
nevermind

Vert
April 21st, 2007, 03:58 PM
If you take the time learn, you won't waste time asking on these forums. Don't get me wrong, we'll always be happy to help you. I'm just asking that you put the effort forward first. Thanks and I'm glad that you solved your problem.

Canis familiaris
April 21st, 2007, 04:37 PM
Use the command:


user@user-pc:~/dev$ g++ filename.cpp -o program.bin
This compiles the file. Now:


user@user-pc:~/dev$ ./program.bin
This executes the program