Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何告诉“配置”文件使用指定版本的 g++ 进行编译?
谢谢。
在 bash shell 中,您可以执行以下操作:
./configure CC=gcc-2.95
其他 shell 也会有类似的技术,但我无法帮助您了解具体情况。如果您的项目是 C++,则需要定义的变量是CXX.
CXX