Я пытаюсь скомпилировать приложение Qt 5.5 с использованием msvc2010. Однако всякий раз, когда я пытаюсь его построить, я получаю несколько ошибок компоновщика, связанных с boost :: iostreams.QT Ошибки Linker с повышением iostreams
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall boost::iostreams::detail::gzip_header::reset(void)" ([email protected][email protected]@[email protected]@@QAEXXZ) referenced in function "public: __thiscall boost::iostreams::detail::gzip_header::gzip_header(void)" ([email protected]@[email protected]@@[email protected])
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall boost::iostreams::detail::gzip_footer::reset(void)" ([email protected][email protected]@[email protected]@@QAEXXZ) referenced in function "public: __thiscall boost::iostreams::detail::gzip_footer::gzip_footer(void)" ([email protected]@[email protected]@@[email protected])
packagehandler.obj:-1: error: LNK2001: unresolved external symbol "int const boost::iostreams::zlib::default_compression" ([email protected]@[email protected]@@3HB)
packagehandler.obj:-1: error: LNK2001: unresolved external symbol "int const boost::iostreams::zlib::deflated" ([email protected]@[email protected]@@3HB)
packagehandler.obj:-1: error: LNK2001: unresolved external symbol "int const boost::iostreams::zlib::default_strategy" ([email protected]@[email protected]@@3HB)
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "protected: __thiscall boost::iostreams::detail::zlib_base::~zlib_base(void)" ([email protected]@[email protected]@@[email protected]) referenced in function [email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected][email protected]@@Z$0
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "protected: __thiscall boost::iostreams::detail::zlib_base::zlib_base(void)" ([email protected]@[email protected]@@[email protected]) referenced in function "public: __thiscall boost::iostreams::detail::zlib_decompressor_impl<class std::allocator<char> >::zlib_decompressor_impl<class std::allocator<char> >(struct boost::iostreams::zlib_params const &)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected][email protected]@@Z)
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "protected: void __thiscall boost::iostreams::detail::zlib_base::reset(bool,bool)" ([email protected][email protected]@[email protected]@@[email protected]) referenced in function "public: __thiscall boost::iostreams::detail::zlib_decompressor_impl<class std::allocator<char> >::~zlib_decompressor_impl<class std::allocator<char> >(void)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected])
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "private: void __thiscall boost::iostreams::detail::zlib_base::do_init(struct boost::iostreams::zlib_params const &,bool,void * (__cdecl*)(void *,unsigned int,unsigned int),void (__cdecl*)(void *,void *),void *)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected]) referenced in function "protected: void __thiscall boost::iostreams::detail::zlib_base::init<class std::allocator<char> >(struct boost::iostreams::zlib_params const &,bool,struct boost::iostreams::detail::zlib_allocator<class std::allocator<char>,class std::allocator<char> > &)" ([email protected][email protected]@[email protected]@@[email protected]@[email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@Z)
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall boost::iostreams::detail::gzip_footer::process(char)" ([email protected][email protected]@[email protected]@@[email protected]) referenced in function [email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]@@[email protected][email protected]@[email protected]@@[email protected]@@[email protected][email protected]@[email protected]@@[email protected]@[email protected]$0
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall boost::iostreams::detail::gzip_header::process(char)" ([email protected][email protected]@[email protected]@@[email protected]) referenced in function "public: __int64 __thiscall boost::iostreams::basic_gzip_decompressor<class std::allocator<char> >::read<class boost::iostreams::detail::linked_streambuf<char,struct std::char_traits<char> > >(class boost::iostreams::detail::linked_streambuf<char,struct std::char_traits<char> > &,char *,__int64)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]@@[email protected][email protected]@[email protected]@@[email protected]@@[email protected][email protected]@[email protected]@@[email protected]@[email protected])
packagehandler.obj:-1: error: LNK2001: unresolved external symbol "int const boost::iostreams::zlib::okay" ([email protected]@[email protected]@@3HB)
packagehandler.obj:-1: error: LNK2001: unresolved external symbol "int const boost::iostreams::zlib::stream_end" ([email protected]@[email protected]@@3HB)
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "public: static void __cdecl boost::iostreams::zlib_error::check(int)" ([email protected][email protected]@[email protected]@[email protected]) referenced in function "public: bool __thiscall boost::iostreams::detail::zlib_decompressor_impl<class std::allocator<char> >::filter(char const * &,char const *,char * &,char *,bool)" ([email protected][email protected]?$alloc[email protected]@[email protected]@@[email protected]@[email protected]@[email protected])
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "protected: void __thiscall boost::iostreams::detail::zlib_base::after(char const * &,char * &,bool)" ([email protected][email protected]@[email protected]@@[email protected]) referenced in function "public: bool __thiscall boost::iostreams::detail::zlib_decompressor_impl<class std::allocator<char> >::filter(char const * &,char const *,char * &,char *,bool)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected])
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "protected: int __thiscall boost::iostreams::detail::zlib_base::xinflate(int)" ([email protected][email protected]@[email protected]@@[email protected]) referenced in function "public: bool __thiscall boost::iostreams::detail::zlib_decompressor_impl<class std::allocator<char> >::filter(char const * &,char const *,char * &,char *,bool)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected])
packagehandler.obj:-1: error: LNK2001: unresolved external symbol "int const boost::iostreams::zlib::sync_flush" ([email protected]@[email protected]@@3HB)
packagehandler.obj:-1: error: LNK2019: unresolved external symbol "protected: void __thiscall boost::iostreams::detail::zlib_base::before(char const * &,char const *,char * &,char *)" ([email protected][email protected]@[email protected]@@[email protected]) referenced in function "public: bool __thiscall boost::iostreams::detail::zlib_decompressor_impl<class std::allocator<char> >::filter(char const * &,char const *,char * &,char *,bool)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected])
debug\EmbeddedBoardTestScriptUtility.exe:-1: error: LNK1120: 18 unresolved externals
TL; DR: Все C++ код, который использует C++, API, когда связаны друг с другом, должны быть скомпилированы с использованием той же основной выпуск Visual Studio, по крайней мере. –
@KubaOber Возможно, мой вопрос был неясным, я перестроил boost для msvc2010. Я не использую msvc2008 .dlls – CountBale