gpt4 book ai didi

c++ - 帮助 VS8 命令行到 IDR?

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:12:37 24 4
gpt4 key购买 nike

问题:

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

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

我正在使用 Visual Studio Prof Edi 2008。

  1. 我应该设置什么 PATH 才能使这个命令起作用?
  2. 如何使用IDE执行以上命令?

注意:我正在学习this .


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:\>

最佳答案

您可以使用以下方式设置环境

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

关于c++ - 帮助 VS8 命令行到 IDR?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/648138/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com