在与python26链接的visual studio中编译错误
我遇到了一个运行错误:
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
下列:
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
我把C: Program Files文件(x86) Microsoft SDKs Windows v7.0A Include包含到PATH中,因为它包含了BaseTsd.h,但是这并没有解决问题。 我不认为这与案件有关?
任何帮助将非常感谢!
它不是PATH它是INCLUDE环境变量。
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/59815.html上一篇: compilation error in visual studio linked with python26