PDA

View Full Version : problems with compilation!



defmer
July 16th, 2006, 08:34 PM
hi all,

I am kind new to Linux so really need a help with compiling c++ progs.

when I did "gcc -o test test.cpp" or "cc test.cpp", I Got the following error.

"gcc: installation problem, cannot exec 'cc1plus': No such file or directory"

thanks for helping out.

defmer

gborzi
July 16th, 2006, 10:52 PM
You need to use c++ or g++ to compile C++ program, and obviously you have to install the g++ package.

Randomskk
July 16th, 2006, 10:57 PM
Make sure "build-essential" is installed via apt / synaptic, and then use this to compile:
g++ -o test test.cpp