PDA

View Full Version : C / C++ Programming in Ubuntu



akash.yakovsky
April 24th, 2007, 12:12 AM
Can someone give just the compilation and running commands in Ubuntu to compile and run a C / C++ program? Plz give the most general form of them.

--Akash.

Wybiral
April 24th, 2007, 12:26 AM
gcc program.c
g++ program.cpp
./a.out

Wybiral
April 24th, 2007, 12:28 AM
Also...

gcc libcode.c -c -o my_object_file.o
gcc program.c my_object_file.o -o my_program