Posts Tagged ‘Intrepid Ibex’

Compiling a C++ program under Ubuntu

Tuesday, November 11th, 2008

I just tried an example from the C++ tutorial.

Compiling and running a simple C++ program under Ubuntu
Compiling and running a simple C++ program under Ubuntu

I am using Ubuntu 8.10 (Intrepid Ibex).

I had to compile the program using the command:
g++ myprogram2.cpp -o myprog2
And then the program was executed with the following line:
./myprog2