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

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

报告相同问题?

悬赏问题

  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码