帮助VS8命令行到IDE?

Pra*_*are 4 c++ ide command-line visual-studio-2008 visual-studio

问题:

C:\> cl/LD hellomodule.c/Ic:\ Python24\include c:\ Python24\libs\python24.lib /link/out:hello.dll

'cl'不被识别为内部或外部命令,可操作程序或批处理文件.

我正在使用Visual Studio Prof Edi 2008.

  1. 我应该为此命令设置什么路径?
  2. 如何使用IDE执行上述命令?

注意:我正在研究这个.


C:\>cl /LD hellomodule.c /Ic:\Python24\include c:\Python24\libs\python24.lib /li
nk/out:hello.dll
'cl' is not recognized as an internal or external command,
operable program or batch file.

C:\>PATH="C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe"

C:\>cl
'cl' is not recognized as an internal or external command,
operable program or batch file.

C:\>PATH="C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe"

C:\>cl /LD hellomodule.c /Ic:\Python24\include c:\Python24\libs\python24.lib /li
nk/out:hello.dll
'cl' is not recognized as an internal or external command,
operable program or batch file.

C:\>
Run Code Online (Sandbox Code Playgroud)

cme*_*erw 9

您可以使用设置环境

C:\ Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat