Windows上无法构建TagPy的链接失败

|| 我是一个不幸的Linux程序员,试图让我的一个项目在Windows 7中工作,这涉及构建TagPy。我正在使用MSVC2008和Python 2.7.1(x86版本)。 我已经成功安装了CMake并构建了TagLib,并从BoostPro安装程序安装了Boost头文件和Boost.Python二进制文件。我在configure.py中设置了boost和taglib lib dirs,包括dirs和lib名称,以及boost编译器。 我的%path%,%lib%和%libpath%已添加了VC提供的批处理脚本设置的MSVC等目录。 我在链接上收到以下错误:
C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\link.exe /DLL /nologo
/INCREMENTAL:NO \"/LIBPATH:C:/Program Files (x86)/taglib/lib\" \"/LIBPATH:C:\\Progra
m Files (x86)\\boost\\boost_1_46_1\\lib\" /LIBPATH:C:\\Python27\\libs /LIBPATH:C:\\Pyth
on27\\PCbuild tagd.lib boost_python-vc90-mt-1_46_1.lib /EXPORT:init_tagpy build\\t
emp.win32-2.7\\Release\\src/wrapper/basics.obj build\\temp.win32-2.7\\Release\\src/wr
apper/id3.obj build\\temp.win32-2.7\\Release\\src/wrapper/rest.obj /OUT:build\\lib.w
in32-2.7\\_tagpy.pyd /IMPLIB:build\\temp.win32-2.7\\Release\\src/wrapper\\_tagpy.lib
/MANIFESTFILE:build\\temp.win32-2.7\\Release\\src/wrapper\\_tagpy.pyd.manifest

   Creating library build\\temp.win32-2.7\\Release\\src/wrapper\\_tagpy.lib and obje
ct build\\temp.win32-2.7\\Release\\src/wrapper\\_tagpy.exp

basics.obj : error LNK2019: unresolved external symbol \"__declspec(dllimport) pu
blic: __thiscall TagLib::String::String(class std::basic_string<wchar_t,struct s
td::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,enum TagLib::St
ring::Type)\" (__imp_??0String@TagLib@@QAE@ABV?$basic_string@_WU?$char_traits@_W@
std@@V?$allocator@_W@2@@std@@W4Type@01@@Z) referenced in function \"public: stati
c void __cdecl boost::python::converter::implicit<class std::basic_string<wchar_
t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class TagLib:
:String>::construct(struct _object *,struct boost::python::converter::rvalue_fro
m_python_stage1_data *)\" (?construct@?$implicit@V?$basic_string@_WU?$char_traits
@_W@std@@V?$allocator@_W@2@@std@@VString@TagLib@@@converter@python@boost@@SAXPAU
_object@@PAUrvalue_from_python_stage1_data@234@@Z)

build\\lib.win32-2.7\\_tagpy.pyd : fatal error LNK1120: 1 unresolved externals
我想念什么? (注意:我以前在未解决的外部环境中也有与Boost相关的异常,但是将/ EHsc作为编译器标志进行了修复。)     
已邀请:
看到这个答案,我认为这是同样的问题。 Tag1ѭ标志将在下一个TagLib版本中消失,但目前已在默认的
CMakeLists.txt
文件中启用。     

要回复问题请先登录注册