Build 构建m2crypto:7个未解析的外部

Build 构建m2crypto:7个未解析的外部,build,openssl,windows-7-x64,python-3.3,m2crypto,Build,Openssl,Windows 7 X64,Python 3.3,M2crypto,我已尝试为win-amd64-py3.3构建() python setup.py build --compiler msvc 我有一个链接器的未解决的外部符号错误(): 发生什么事了?我正在使用。我需要旧的库吗?从完整的日志来看,第一个问题是编译器找不到python c头文件。然后链接器找不到python库。可能cl.exe的选项不好(应该是/ID:\…而不是-ID:\…?),或者您没有安装python头文件 C:\Program Files (x86)\Microsoft Visual St

我已尝试为win-amd64-py3.3构建()

python setup.py build --compiler msvc
我有一个链接器的未解决的外部符号错误():


发生什么事了?我正在使用。我需要旧的库吗?

从完整的日志来看,第一个问题是编译器找不到python c头文件。然后链接器找不到python库。可能cl.exe的选项不好(应该是
/ID:\…
而不是
-ID:\…
?),或者您没有安装python头文件

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\Programy\Python33\libs /LIBPATH:D:\Programy\Python33\PCbuild\amd64 /LIBPATH:c:\pkg\lib ssleay32.lib libeay32.lib /EXPORT:PyInit___m2crypto build\temp.win-amd64-3.3\Release\SWIG/_m2crypto_wrap.obj /OUT:build\lib.win-amd64-3.3\M2Crypto\__m2crypto.pyd /IMPLIB:build\temp.win-amd64-3.3\Release\SWIG\__m2crypto.lib /MANIFESTFILE:build\temp.win-amd64-3.3\Release\SWIG\__m2crypto.pyd.manifest
_m2crypto_wrap.obj : warning LNK4197: export 'PyInit___m2crypto' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.3\Release\SWIG\__m2crypto.lib and object build\temp.win-amd64-3.3\Release\SWIG\__m2crypto.exp
_m2crypto_wrap.obj : error LNK2019: unresolved external symbol PyString_AsStringAndSize referenced in function m2_PyString_AsStringAndSizeInt
_m2crypto_wrap.obj : error LNK2019: unresolved external symbol PyString_FromStringAndSize referenced in function bn_to_mpi
_m2crypto_wrap.obj : error LNK2019: unresolved external symbol PyInt_AS_LONG referenced in function asn1_integer_set
_m2crypto_wrap.obj : error LNK2019: unresolved external symbol PyBuffer_New referenced in function ec_key_get_public_der
_m2crypto_wrap.obj : error LNK2019: unresolved external symbol PyFile_AsFile referenced in function _wrap_err_print_errors_fp
_m2crypto_wrap.obj : error LNK2019: unresolved external symbol PyFile_Check referenced in function _wrap_err_print_errors_fp
_m2crypto_wrap.obj : error LNK2019: unresolved external symbol PyInstance_New referenced in function ssl_verify_callback
build\lib.win-amd64-3.3\M2Crypto\__m2crypto.pyd : fatal error LNK1120: 7 unresolved externals