-1

I am using Ubuntu 13.10(Saucy). I installed g++-4.7 in my machine. But when I tried to run g++ or tried to check the version it is showing that the package is not installed.

$ g++ --version
The program 'g++' can be found in the following packages:
 * g++
 * pentium-builder
Try: sudo apt-get install <selected package>

sudo apt-get install g++ or sudo apt-get install g++-4.8 is not successful in my machine because of some broken packages which I couldn't resolve.

Please help me to use g++ with 4.7 version. Thanks in advance.

1 Answers1

0

The following command will help to use g++-4.7 as g++.

sudo ln -s /usr/bin/g++-4.7 /usr/bin/g++ 

This is what I was asking for. In synaptic you can see that g++ is having version 4.8.1. By using the above command you will be able to use g++-4.7 with g++ command in your machine.