1

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

Chedi Bechikh
  • 183
  • 3
  • 13

1 Answers1

1

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++

Pierre
  • 1,162
  • 12
  • 29