i have on my ubuntu 15.10 g++ complier 5, and i installed g++-4.2, by default the system will use the last version. How to choose in the makfile the right version should i replace in the makefile the
cc=g++
by
cc=g-4.2
is that correct
i have on my ubuntu 15.10 g++ complier 5, and i installed g++-4.2, by default the system will use the last version. How to choose in the makfile the right version should i replace in the makefile the
cc=g++
by
cc=g-4.2
is that correct
If the g++ executable name (in /usr/bin) is g++-4.2 then you can set CC=g++-4.2 in the Makefile
Or you can create a link inside /usr/bin from g++ to g++-4.2 with this command:
cd /usr/bin && sudo ln g++-4.3 g++