Problem with using Magick++ Debug libraries

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
vcdeveloper
Posts: 1
Joined: 2012-04-24T09:09:53-07:00
Authentication code: 13

Problem with using Magick++ Debug libraries

Post by vcdeveloper » 2012-04-24T09:14:18-07:00

Hi,
I have installed ImageMagick-6.7.6-6-Q16 windows version (x86) using ‘ImageMagick-6.7.6-6-Q16-windows-dll’ on Windows7. Using the provided ‘include’ and ‘lib’ (release version) files from the installation – I was able to integrate them (CORE_RL_Magick++_.lib, CORE_RL_magick_.lib, CORE_RL_wand_.lib, and X11.lib ) into a test application in ‘Visual Studio 2010’ IDE, and it worked fine.
To get ‘Debug’ libraries ( ), I have downloaded ‘ImageMagick-6.7.6’ windows source and build the solution in ‘Visual Studio 2010’ IDE. I got the debug libraries from project bulid: ‘CORE_DB_Magick++_.lib’, ‘CORE_DB_magick_.lib’, ‘CORE_DB_wand_.lib’, and ‘X11.lib’.
Now, if I am trying to use ‘Debug’ version libraries into the same test application in ‘Visual Studio 2010’ IDE, I am seeing the following liker errors. I have used the same project settings for ‘Debug’ build of my test application from ‘Release’ build. Used the same ‘include’ path, and ‘lib’ referencing paths in both ‘Debug’ and ‘Release’ mode settings of my test application; The release build works fine, and I am able to execute the program, but the debug build throws the following linker errors. Please let me know what I am doing wrong in case of Debug build.

error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Magick::Image::~Image(void)" (__imp_??1Image@Magick@@UAE@XZ) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Magick::Blob::~Blob(void)" (__imp_??1Blob@Magick@@UAE@XZ) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void const * __thiscall Magick::Blob::data(void)const " (__imp_?data@Blob@Magick@@QBEPBXXZ) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall Magick::Blob::length(void)const " (__imp_?length@Blob@Magick@@QBEIXZ) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Magick::Image::write(class Magick::Blob *)" (__imp_?write@Image@Magick@@QAEXPAVBlob@2@@Z) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Blob::Blob(void)" (__imp_??0Blob@Magick@@QAE@XZ) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Magick::Image::write(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?write@Image@Magick@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Magick::Image::magick(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?magick@Image@Magick@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Image::Image(class Magick::Blob const &)" (__imp_??0Image@Magick@@QAE@ABVBlob@1@@Z) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Blob::Blob(void const *,unsigned int)" (__imp_??0Blob@Magick@@QAE@PBXI@Z) referenced in function .......
error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Magick::InitializeMagick(char const *)" (__imp_?InitializeMagick@Magick@@YAXPBD@Z) referenced in function .......

Thanks,
vcdeveloper

Post Reply