我有下面的代码使用SCons不能挑编译器(MinGW的)
path = ['C:\\MinGW\\bin']
env = Environment(ENV = {'PATH' : path})
Program(target = 'myprogram', source = ['main.cpp'])
运行 'scons的' CMD上一个简单的SConstruct文件提供了以下错误信息:
cl /Fomain.obj /c main.cpp /TP /nologo
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [main.obj] Error 1
scons: building terminated because of errors.
它看起来像SCons不会选择我的编译器(MinGW)。我究竟做错了什么? 我在Windows 7 64位上。
这两种方式都不起作用。 – Amani
@Amani结果输出是什么?它是否仍在寻找cl?还是现在正在寻找合适的编译器? – Brady