养生 装修 购物 美食 感冒 便秘 营销 加盟 小吃 火锅 管理 创业 搭配 减肥 培训 旅游

error LNK2019: 无法解析的外部符号

时间:2024-10-21 13:01:34

1&壹执慵驾gt;------已启动生成:项目:CGALTEST510,配置:Debugx64------吭稿荔徊1>CGALTEST510.obj:errorLNK2019:无法解析的外部符号"classboost::system::error_categoryconst&__cdeclboost::system::system_category(void)"(?system_category@system@boost@@YAAEBVerror_category@12@XZ),该符号在函数"void__cdeclboost::system::`dynamicinitializerfor'native_ecat''(void)"(??__Enative_ecat@system@boost@@YAXXZ)中被引用1>CGALTEST510.obj:errorLNK2019:无法解析的外部符号"classboost::system::error_categoryconst&__cdeclboost::system::generic_category(void)"(?generic_category@system@boost@@YAAEBVerror_category@12@XZ),该符号在函数"void__cdeclboost::system::`dynamicinitializerfor'errno_ecat''(void)"(??__Eerrno_ecat@system@boost@@YAXXZ)中被引用1>CGALTEST510.obj:errorLNK2019:无法解析的外部符号__imp___gmpn_copyi,该符号在函数"public:__cdeclCGAL::Mpzf::Mpzf(structCGAL::Mpzfconst&)"(??0Mpzf@CGAL@@QEAA@AEBU01@@Z)中被引用1>G:\Cpp\Midaxis\CGALTEST510\x64\Debug\CGALTEST510.exe:fatalerrorLNK1120:10个无法解析的外部命令==========生成:成功0个,失败1个,最新0个,跳过0个==========

工具/原料

VS2013

怎样解决?

1、遇到这种问题一般都是由于缺少相应的库文件

error LNK2019: 无法解析的外部符号

2、右击项目,选择“属性”--“链接器”--“输入”--“附加依赖项”根据错虱忪招莫误中的提示在下图右边的红色框内添加相应的lib文件

error LNK2019: 无法解析的外部符号

3、再次编译运行即可避免此类错误产生

error LNK2019: 无法解析的外部符号

4、这是我们常见的错误,我们要学会解决

error LNK2019: 无法解析的外部符号

5、只有在不断地探索解决的时候才会有收获

error LNK2019: 无法解析的外部符号

6、这样对程序员才是一种欣喜,一种进步

error LNK2019: 无法解析的外部符号

© 一点知识