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++
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.