./configure with a specified version of g++

2019-03-14 19:12发布

问题:

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

Thanks.

回答1:

In a bash shell you can do something like this:

CC=gcc-2.95 ./configure

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.