ATongger 2016-05-04 14:40 采纳率: 50%
浏览 2204
已采纳

vs2013 使用imagemagick库出现无法解析的外部符号

错误 141 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual thiscall Magick::Blob::~Blob(void)" (imp_??1Blob@Magick@@UAE@XZ),该符号在函数 "public: thiscall Texture::~Texture(void)" (??1Texture@@QAE@XZ) 中被引用 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\mesh.obj Texture
错误 142 error LNK2001: 无法解析的外部符号 "
declspec(dllimport) public: virtual thiscall Magick::Blob::~Blob(void)" (imp_??1Blob@Magick@@UAE@XZ) C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\Texture.obj Texture
错误 143 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual thiscall Magick::Image::~Image(void)" (imp_??1Image@Magick@@UAE@XZ),该符号在函数 "public: thiscall Texture::~Texture(void)" (??1Texture@@QAE@XZ) 中被引用 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\mesh.obj Texture
错误 144 error LNK2001: 无法解析的外部符号 "
declspec(dllimport) public: virtual thiscall Magick::Image::~Image(void)" (imp_??1Image@Magick@@UAE@XZ) C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\Texture.obj Texture
错误 145 error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: thiscall Magick::Blob::Blob(void)" (imp_??0Blob@Magick@@QAE@XZ),该符号在函数 "public: thiscall Texture::Texture(unsigned int,class std::basic_string,class std::allocator > const &)" (??0Texture@@QAE@IABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 中被引用 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\Texture.obj Texture
错误 146 error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: void const * thiscall Magick::Blob::data(void)const " (imp_?data@Blob@Magick@@QBEPBXXZ),该符号在函数 catch$?Load@Texture@@QAE_NXZ$0 中被引用 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\Texture.obj Texture
错误 147 error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: thiscall Magick::Image::Image(void)" (imp_??0Image@Magick@@QAE@XZ),该符号在函数 "public: thiscall Texture::Texture(unsigned int,class std::basic_string,class std::allocator > const &)" (??0Texture@@QAE@IABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 中被引用 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\Texture.obj Texture
错误 148 error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: void thiscall Magick::Image::read(class std::basic_string,class std::allocator > const &)" (imp_?read@Image@Magick@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "public: bool thiscall Texture::Load(void)" (?Load@Texture@@QAE_NXZ) 中被引用 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\Texture.obj Texture
错误 149 error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: void thiscall Magick::Image::write(class Magick::Blob *,class std::basic_string,class std::allocator > const &)" (imp_?write@Image@Magick@@QAEXPAVBlob@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "public: bool thiscall Texture::Load(void)" (?Load@Texture@@QAE_NXZ) 中被引用 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\Texture.obj Texture
错误 150 error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: unsigned int thiscall Magick::Image::columns(void)const " (imp_?columns@Image@Magick@@QBEIXZ),该符号在函数 catch$?Load@Texture@@QAE_NXZ$0 中被引用 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\Texture.obj Texture
错误 151 error LNK2019: 无法解析的外部符号 "
declspec(dllimport) public: unsigned int thiscall Magick::Image::rows(void)const " (imp_?rows@Image@Magick@@QBEIXZ),该符号在函数 __catch$?Load@Texture@@QAE_NXZ$0 中被引用 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Texture\Texture.obj Texture
错误 152 error LNK1120: 9 个无法解析的外部命令 C:\Users\TWJCXF\Downloads\OpenGL Course1\OpenGL Course\OpenGL Course\Debug\Texture.exe Texture
具体错误如上
我把.lib文件放入../VC/lib中了
也把.dll文件放入system32了

  • 写回答

1条回答

  • threenewbee 2016-05-04 15:25
    关注

    在你的项目设置里面看下lib的目录是否包含../VC/lib,还有头文件里面是怎么引用的lib

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效