使用scon编译C++;Cygwin下的项目-cl错误 我试图在Visual Studio 2010 Express中编译一个C++项目,在CygWin shell中运行 sCONS。我在应该在其中运行SCON的文件夹中,但我收到一个cl错误。以下是我的输出: The Citadel EE@TheCitadelEE-PC /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.

使用scon编译C++;Cygwin下的项目-cl错误 我试图在Visual Studio 2010 Express中编译一个C++项目,在CygWin shell中运行 sCONS。我在应该在其中运行SCON的文件夹中,但我收到一个cl错误。以下是我的输出: The Citadel EE@TheCitadelEE-PC /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.,build,cygwin,scons,Build,Cygwin,Scons,我曾尝试在DOS命令提示符下运行vcvarsall.bat来设置环境变量,但到目前为止还没有成功 好吧,如果其他人也有我遇到过的问题,下面是我为解决这个问题所做的: 我打开了VisualStudio(VS)的命令提示符,转到了我的C++文件所在的目录,并运行了SCONS.BAT(我还添加了SCONS.BAT的路径,这样我就可以键入“sCONS,BAT”而不是整个路径名)。这会自动设置某些环境变量,因此我可以使用命令行(CL)构建VS C++文件。完成这项工作后,我成功地使用SCON构建了我的项目

我曾尝试在DOS命令提示符下运行vcvarsall.bat来设置环境变量,但到目前为止还没有成功

好吧,如果其他人也有我遇到过的问题,下面是我为解决这个问题所做的:

我打开了VisualStudio(VS)的命令提示符,转到了我的C++文件所在的目录,并运行了SCONS.BAT(我还添加了SCONS.BAT的路径,这样我就可以键入“sCONS,BAT”而不是整个路径名)。这会自动设置某些环境变量,因此我可以使用命令行(CL)构建VS C++文件。完成这项工作后,我成功地使用SCON构建了我的项目。另外,我没有使用Cygwin,我现在的项目也不再使用Cygwin。我发现我可以用Windows命令提示符做所有需要做的事情