与boost库链接失败

时间:2011-11-19 21:03:06

标签: c++ boost ubuntu linker autotools

我正在尝试编译此应用:http://code.google.com/p/pantera-tagger/

“configure”脚本成功,所有必要的库(boost,openmpi,icu等)都是通过Synaptic安装的(在Ubuntu 11.10 amd64上)。我键入“make”,编译似乎也成功了,但链接失败如下:

libtool: link: /usr/bin/mpicxx -I/usr/include -I../third_party/TaKIPI18/Linux/Corpus -DSEGMENT_PATH=\"/usr/local/libexec/pantera-tagger:/home/mlenart/src/pantera-tagger2/third_party/segment\" -DENGINES_PATH=\"/usr/local/share/pantera-tagger/engines:/home/mlenart/src/pantera-tagger2/engines\" -g -O2 -pthread -fno-omit-frame-pointer -Wl,-rpath -Wl,/home/mlenart/src/pantera-tagger2/third_party/TaKIPI18/Linux/bin/Corpus -Wl,-rpath -Wl,/usr/local/lib/pantera-tagger -Wl,-rpath -Wl,/home/mlenart/src/pantera-tagger2/third_party/morfeusz/lib -o .libs/wrapper_test wrapper_test.o ../third_party/TaKIPI18/Linux/bin/Corpus/libcorpus.so  -L/usr/lib -lboost_serialization -lboost_regex -lboost_program_options -lboost_system -lboost_filesystem -lboost_iostreams -lboost_mpi -licui18n -licuuc -licudata -ldl -lm -lmorfeusz -L../third_party/TaKIPI18/Linux/bin/Corpus -lcorpus ./.libs/libpantera.so nlpcommon/.libs/libnlpcommon.so -ltcmalloc -pthread
libtool: link: /usr/bin/mpicxx -I/usr/include -I../third_party/TaKIPI18/Linux/Corpus -DSEGMENT_PATH=\"/usr/local/libexec/pantera-tagger:/home/mlenart/src/pantera-tagger2/third_party/segment\" -DENGINES_PATH=\"/usr/local/share/pantera-tagger/engines:/home/mlenart/src/pantera-tagger2/engines\" -g -O2 -pthread -fno-omit-frame-pointer -Wl,-rpath -Wl,/home/mlenart/src/pantera-tagger2/third_party/TaKIPI18/Linux/bin/Corpus -Wl,-rpath -Wl,/usr/local/lib/pantera-tagger -Wl,-rpath -Wl,/home/mlenart/src/pantera-tagger2/third_party/morfeusz/lib -o .libs/pantera_eval eval.o ../third_party/TaKIPI18/Linux/bin/Corpus/libcorpus.so  -L/usr/lib -lboost_serialization -lboost_regex -lboost_program_options -lboost_system -lboost_filesystem -lboost_iostreams -lboost_mpi -licui18n -licuuc -licudata -ldl -lm -lmorfeusz -L../third_party/TaKIPI18/Linux/bin/Corpus -lcorpus ./.libs/libpantera.so nlpcommon/.libs/libnlpcommon.so -ltcmalloc -pthread
./.libs/libpantera.so: undefined reference to `boost::archive::basic_text_iprimitive<std::basic_istream<char, std::char_traits<char> > >::~basic_text_iprimitive()'
./.libs/libpantera.so: undefined reference to `boost::re_detail::is_combining_implementation(unsigned short)'
./.libs/libpantera.so: undefined reference to `vtable for boost::archive::archive_exception'
./.libs/libpantera.so: undefined reference to `boost::basic_regex<wchar_t, boost::regex_traits<wchar_t, boost::cpp_regex_traits<wchar_t> > >::do_assign(wchar_t const*, wchar_t const*, unsigned int)'
### .... and much more of it ....

我在/ usr / local中使用了旧版本的boost但删除了它(需要更新的版本)并且不得不重新编译“pantera-tagger”应用程序。现在它失败了任何版本的提升。可能导致问题的原因是什么?

0 个答案:

没有答案
相关问题