I'm having problems compiling C++ programs. I've tried compiling C++ programs with extension .cc and .cpp. I've tried compiling with gcc, g++ and even cc (with .cc extension files).
Earlier (as g++ wasn't installed) i tried installing g++ (sudo apt-get install g++) for which i got the message "g++ has no installation candidate". Later from Synaptic i found it as g++-2.95 and installed it. I've also installed pentium-builder
Whenever i've tried to install "build-essential" (using apt-get and aptitude) i've got messages along the line of "no installation candidate". I've searched many posts and not got the answer for this. I've treid update and upgrade before installation, no use. I have all the repositories checked in software sources and the server as "main server".
Now, the main problem is: (when trying to compile a .cpp file)
user@dell-desktop:~$ g++ hello.cpp
Unable to exec g++.real: No such file or directory
user@dell-desktop:~$ gcc hello.cpp
gcc.real: error trying to exec 'cc1plus': execvp: No such file or directory
user@dell-desktop:~$ cc hello.cpp
gcc.real: error trying to exec 'cc1plus': execvp: No such file or directory
(I have ubuntu Intrepid Ibex)
Bookmarks