当我尝试在 C:\boost_1_50_0\libs\python\example\quickstart 下运行示例时,出现以下错误,并且我的 python 文件被删除(这很烦人)。我在 Windows 7 OS 上使用 Python 3.3 和 Boost 1.50。
C:\boost_1_50_0\libs\python\example\quickstart>bjam 工具集=msvc --verbose-test test > error_log
错误日志:
...patience...
...patience...
...found 1662 targets...
...updating 11 targets...
copy test_extending.py
The syntax of the command is incorrect.
copy /b + this-file-does-not-exist-A698EE7806899E69 "test_extending.py" "bin\test_ext.test\msvc-10.0\debug\threading-multi\test_extending.py"
...failed copy test_extending.py bin\test_ext.test\msvc-10.0\debug\threading-multi\test_extending.py...
...removing test_extending.py
compile-c-c++ bin\msvc-10.0\debug\threading-multi\extending.obj
extending.cpp
msvc.link.dll bin\msvc-10.0\debug\threading-multi\extending.pyd
Creating library bin\msvc-10.0\debug\threading-multi\extending.lib and object bin\msvc-10.0\debug\threading-multi\extending.exp
msvc.manifest.dll bin\msvc-10.0\debug\threading-multi\extending.pyd
...skipped <pbin\test_ext.test\msvc-10.0\debug\threading-multi>test_ext for lack of <pbin\test_ext.test\msvc-10.0\debug\threading-multi>test_extending.py...
msvc.link bin\test_embed.test\msvc-10.0\debug\threading-multi\test_embed.exe
LINK : warning LNK4001: no object files specified; libraries used
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
bin\test_embed.test\msvc-10.0\debug\threading-multi\test_embed.exe : fatal error LNK1120: 1 unresolved externals
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DEBUG /MACHINE:X86 /subsystem:console /out:"bin\test_embed.test\msvc-10.0\debug\threading-multi\test_embed.exe" /LIBPATH:"C:\Python33\libs" @"bin\test_embed.test\msvc-10.0\debug\threading-multi\test_embed.exe.rsp"
if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
...failed msvc.link bin\test_embed.test\msvc-10.0\debug\threading-multi\test_embed.exe
所以这里有2个错误需要修复:
a) 复制 test_extending.py 命令的语法不正确。
b)链接:错误LNK2001:未解析的外部符号_mainCRTStartup
任何想法我该如何解决这个问题?