PDA

View Full Version : i need a C++ compiler for linux



bosshoof
May 27th, 2007, 05:17 AM
Hi
i need a C++ compiler for linux

xtacocorex
May 27th, 2007, 05:18 AM
sudo apt-get install build-essential

bosshoof
May 27th, 2007, 05:39 AM
sudo apt-get install build-essential

thanks

i did so

but i can't find the compiler under programming :(
where to find it ?

xtacocorex
May 27th, 2007, 05:47 AM
The compilers are terminal based.

If you have a code written, for this example we'll use hello.cpp for a hello world program we'd do the following to compile it.

g++ -o ./hello hello.cpp
To run the code, you will do:

./hello

public_void
May 27th, 2007, 08:31 AM
You can install an IDE like Anjuta which will use g++ as the c++ compiler.