boost 引用错误 无法解析的外部符号
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了boost 引用错误 无法解析的外部符号相关的知识,希望对你有一定的参考价值。
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TWinsockSingleton.obj 1
错误 LNK1120 9 个无法解析的外部命令 libthrift E:\thriftserver\Debug\libthrift.dll 1
错误 LNK2019 无法解析的外部符号 "bool __cdecl boost::this_thread::interruptible_wait(void *,struct boost::detail::timeout)" ([email protected][email protected]@@[email protected]@[email protected]@Z),该符号在函数 "public: bool __thiscall boost::detail::basic_cv_list_entry::wait(struct boost::detail::timeout)" ([email protected][email protected]@[email protected]@[email protected]@@Z) 中被引用 libthrift E:\thriftserver\thriftserver\BoostMonitor.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\WinFcntl.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TTransportUtils.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\GetTimeOfDay.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\SocketPair.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\StdAfx.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TServerSocket.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TSimpleFileTransport.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TSocket.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TTransportException.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\THttpServer.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\THttpTransport.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TPipe.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TPipeServer.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TBufferTransports.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TFDTransport.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected][email protected]@@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TFileTransport.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\THttpClient.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TSimpleServer.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TThreadPoolServer.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TApplicationException.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\Thrift.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TBase64Utils.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TDebugProtocol.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TDenseProtocol.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TJSONProtocol.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\ThreadManager.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TimerManager.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\Util.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\PeekProcessor.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TAsyncChannel.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\BoostMonitor.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\BoostMutex.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\BoostThreadFactory.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TWinsockSingleton.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\WinFcntl.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TTransportUtils.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\GetTimeOfDay.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\SocketPair.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\StdAfx.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TServerSocket.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TSimpleFileTransport.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TSocket.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TTransportException.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\THttpServer.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\THttpTransport.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TPipe.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TPipeServer.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TBufferTransports.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TFDTransport.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TFileTransport.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\THttpClient.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TSimpleServer.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TThreadPoolServer.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TApplicationException.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\Thrift.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TBase64Utils.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TDebugProtocol.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TDenseProtocol.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TJSONProtocol.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\ThreadManager.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TimerManager.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\Util.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\PeekProcessor.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TAsyncChannel.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\BoostMonitor.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\BoostMutex.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\BoostThreadFactory.obj 1
错误 LNK2001 无法解析的外部符号 "class boost::thread::id __cdecl boost::this_thread::get_id(void)" ([email protected][email protected]@@[email protected]@[email protected]) libthrift E:\thriftserver\thriftserver\TFileTransport.obj 1
错误 LNK2019 无法解析的外部符号 "class boost::thread::id __cdecl boost::this_thread::get_id(void)" ([email protected][email protected]@@[email protected]@[email protected]),该符号在函数 "public: class boost::thread::id __thiscall apache::thrift::concurrency::BoostThreadFactory::Impl::getCurrentThreadId(void)const " ([email protected]@[email protected]@[email protected]@@[email protected]@[email protected]@XZ) 中被引用 libthrift E:\thriftserver\thriftserver\BoostThreadFactory.obj 1
错误 LNK2001 无法解析的外部符号 "private: bool __thiscall boost::thread::join_noexcept(void)" ([email protected]@[email protected]@AAE_NXZ) libthrift E:\thriftserver\thriftserver\TFileTransport.obj 1
错误 LNK2019 无法解析的外部符号 "private: bool __thiscall boost::thread::join_noexcept(void)" ([email protected]@[email protected]@AAE_NXZ),该符号在函数 "public: void __thiscall boost::thread::join(void)" ([email protected]@[email protected]@QAEXXZ) 中被引用 libthrift E:\thriftserver\thriftserver\BoostThreadFactory.obj 1
错误 LNK2001 无法解析的外部符号 "private: bool __thiscall boost::thread::start_thread_noexcept(void)" ([email protected]@[email protected]@AAE_NXZ) libthrift E:\thriftserver\thriftserver\TFileTransport.obj 1
错误 LNK2019 无法解析的外部符号 "private: bool __thiscall boost::thread::start_thread_noexcept(void)" ([email protected]@[email protected]@AAE_NXZ),该符号在函数 "private: void __thiscall boost::thread::start_thread(void)" ([email protected]@[email protected]@AAEXXZ) 中被引用 libthrift E:\thriftserver\thriftserver\BoostThreadFactory.obj 1
错误 LNK2001 无法解析的外部符号 "public: class boost::thread::id __thiscall boost::thread::get_id(void)const " ([email protected]@[email protected]@[email protected]@XZ) libthrift E:\thriftserver\thriftserver\TFileTransport.obj 1
错误 LNK2019 无法解析的外部符号 "public: class boost::thread::id __thiscall boost::thread::get_id(void)const " ([email protected]@[email protected]@[email protected]@XZ),该符号在函数 "public: virtual class boost::thread::id __thiscall apache::thrift::concurrency::BoostThread::getId(void)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@XZ) 中被引用 libthrift E:\thriftserver\thriftserver\BoostThreadFactory.obj 1
错误 LNK2001 无法解析的外部符号 "public: virtual __thiscall boost::detail::thread_data_base::~thread_data_base(void)" ([email protected]@[email protected]@[email protected]) libthrift E:\thriftserver\thriftserver\TFileTransport.obj 1
错误 LNK2019 无法解析的外部符号 "public: virtual __thiscall boost::detail::thread_data_base::~thread_data_base(void)" ([email protected]@[email protected]@[email protected]),该符号在函数 "public: virtual __thiscall boost::detail::thread_data<class boost::_bi::bind_t<void *,void * (__cdecl*)(void *),class boost::_bi::list1<class boost::_bi::value<void *> > > >::~thread_data<class boost::_bi::bind_t<void *,void * (__cdecl*)(void *),class boost::_bi::list1<class boost::_bi::value<void *> > > >(void)" ([email protected][email protected]@[email protected][email protected]@[email protected]@@@[email protected]@@@[email protected]@@@[email protected]@@[email protected]) 中被引用 libthrift E:\thriftserver\thriftserver\BoostThreadFactory.obj 1
错误 LNK2001 无法解析的外部符号 "public: void __thiscall boost::thread::detach(void)" ([email protected]@[email protected]@QAEXXZ) libthrift E:\thriftserver\thriftserver\TFileTransport.obj 1
错误 LNK2019 无法解析的外部符号 "public: void __thiscall boost::thread::detach(void)" ([email protected]@[email protected]@QAEXXZ),该符号在函数 "public: __thiscall boost::thread::~thread(void)" ([email protected]@@[email protected]) 中被引用 libthrift E:\thriftserver\thriftserver\BoostThreadFactory.obj 1
bool interruptible_wait(detail::win32::handle handle_to_wait_for,detail::timeout target_time)
怀疑是boost版本之间的问题,主要是原本采用了1.58.0版本,后来使用了1.64.0版本的代码,初步认为
是两者之间的线程代码出现了分歧,导致无法找到函数的定义,实际上并没有出现这种情况
以上是关于boost 引用错误 无法解析的外部符号的主要内容,如果未能解决你的问题,请参考以下文章
python setup.py安装错误LNK2019:函数致命错误LNK1120中引用的无法解析的外部符号fmin:
error LNK2019: 无法解析的外部符号 求解答..
错误 1 error LNK2019: 无法解析的外部符号 __imp__pthread_create,该符号在函数 _main 中被引用 解决方法
error LNK2019: 无法解析的外部符号;fatal error LNK1120: 1 个无法解析的外部命令; 可能存在的问题