23

How to tell to a 'configure' file to compile with a specified version of g++ ?

Thanks.

Oodini
  • 1,092
  • 6
  • 11
  • 22

1 Answers1

33

In a bash shell you can do something like this:

./configure CC=gcc-2.95

There will be similar techniques for other shells but I couldn't help you with the specifics. If your project is C++ the variable you need to define is CXX.

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
Dan Olson
  • 22,849
  • 4
  • 42
  • 56