1
我想通過在Cygwin shell內運行scons.bat
來使用Visual Studio 2010 Express編譯C++項目。我在我應該運行Scons的文件夾中,但是我遇到了一個cl錯誤。這裏是我的輸出:使用Scons在Cygwin下編譯C++項目 - cl錯誤
The Citadel [email protected] /c/JTS/PracticeCode/PingComponent_120
$ /c/Python27/Scripts/scons.bat
scons: Reading SConscript files ...
scons: Building for Windows...
scons: done reading SConscript files.
scons: Building targets ...
cl /FoC:\JTS\jaustoolset-2.2.1 \GUI\templates\Common\Build\InternalEvents\InternalEventHandler.obj /c C:\JTS\jaustoolset-2.2.1\GUI\templates\Common\src\InternalEvents\InternalEventHandler.cpp /TP /nologo -DWIN32 -DWINDOWS /MD -EHsc -D_CRT_SE CURE_NO_DEPRECATE -DTIXML_USE_STL /I. /Iinclude /IC:\JTS\jaustoolset-2.2.1\GUI\templates\Common\include cl is not recognized as an internal or external command,
operable program or batch file.
scons: [C:\JTS\jaustoolset-2.2.1 \GUI\templates\Common\Build\InternalEvents\InternalEventHandler.obj] Error 1
scons: building terminated because of errors.
我曾嘗試在DOS命令提示符下設置環境變量運行vcvarsall.bat,但是這不那麼遠工作。