./configure with a specified version of g++

前端 未结 1 884
故里飘歌
故里飘歌 2021-02-05 06:47

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

Thanks.

1条回答
  •  醉话见心
    2021-02-05 07:29

    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.

    0 讨论(0)
提交回复
热议问题