与 python26 链接的 Visual Studio 中的编译错误 [英] compilation error in visual studio linked with python26

查看:35
本文介绍了与 python26 链接的 Visual Studio 中的编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行时遇到错误:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPYTHON -DJCC_VER="2.13" -D_java_generics -IX:\Java16/include -IX:\Java16/include/win32 -Ibuild\_CMMCore -IC:\Python26\lib\site-packages\jcc\sources -IC:\Python26\include -IC:\Python26\PC /Tpbuild\_CMMCore\CMMCore.cpp /Fobuild\temp.win32-2.6\Release\build\_CMMCore\CMMCore.obj /EHsc /D_CRT_SECURE_NO_WARNINGS

以下内容:

c:\python26\include\pyconfig.h(233) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2

我将 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include 放入 PATH 中,因为它包含 BaseTsd.h,但这并没有解决问题.我不认为这与案件有关?

I put C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include into PATH because it includes BaseTsd.h, but this didnt solve the problem. I dont think it has to do with the cases?

非常感谢任何帮助!

推荐答案

不是 PATH,而是 INCLUDE 环境变量.

It's not the PATH it's INCLUDE environment variable.

http://msdn.microsoft.com/en-us/library/f2ccy3wt(v=vs.80).aspx

这篇关于与 python26 链接的 Visual Studio 中的编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆