compilation error in visual studio linked with python26

I am getting an error running:

C:Program Files (x86)Microsoft Visual Studio 9.0VCBINcl.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:Python26libsite-packagesjccsources -IC:Python26include -IC:Python26PC /Tpbuild_CMMCoreCMMCore.cpp /Fobuildtemp.win32-2.6Releasebuild_CMMCoreCMMCore.obj /EHsc /D_CRT_SECURE_NO_WARNINGS

The following:

c:python26includepyconfig.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.0VCBINcl.exe"' failed with exit status 2

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

Any help would be very much appreciated!


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

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


我将缺少的“.h”头文件复制到“C: Users USERNAME AppData Local Programs Common Microsoft Visual C ++ for Python 9.0 VC include”,并且工作正常。

链接地址: http://www.djcxy.com/p/59816.html

上一篇: android项目有红色的x,但代码没有错误

下一篇: 在与python26链接的visual studio中编译错误