Linker errors using magick++ with visual studio 05
Posted: 2011-09-16T08:48:57-07:00
Hello,
I just found out about this library yesterday and have been trying to get it to work with visual studio 2005. I downloaded the windows installer and installed it and also tried to compile the code to generate libraries. Both approaches did install some libraries but none of them would work with my project.
The following is the linker error I get,
Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Magick::Image::~Image(void)" (__imp_??1Image@Magick@@UAE@XZ) referenced in function "public: void __thiscall picedit::OnBnClickedButton1(void)" (?OnBnClickedButton1@picedit@@QAEXXZ) picedit.obj
Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Magick::Image::read(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?read@Image@Magick@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: void __thiscall picedit::OnBnClickedButton1(void)" (?OnBnClickedButton1@picedit@@QAEXXZ) picedit.obj
Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Image::Image(void)" (__imp_??0Image@Magick@@QAE@XZ) referenced in function "public: void __thiscall picedit::OnBnClickedButton1(void)" (?OnBnClickedButton1@picedit@@QAEXXZ) picedit.obj
Any one has any idea about what I am doing wrong ? I have all my libs and dlls in a folder, the path of which is inside the linker properties.
Thanks in Advance
I just found out about this library yesterday and have been trying to get it to work with visual studio 2005. I downloaded the windows installer and installed it and also tried to compile the code to generate libraries. Both approaches did install some libraries but none of them would work with my project.
The following is the linker error I get,
Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Magick::Image::~Image(void)" (__imp_??1Image@Magick@@UAE@XZ) referenced in function "public: void __thiscall picedit::OnBnClickedButton1(void)" (?OnBnClickedButton1@picedit@@QAEXXZ) picedit.obj
Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Magick::Image::read(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?read@Image@Magick@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: void __thiscall picedit::OnBnClickedButton1(void)" (?OnBnClickedButton1@picedit@@QAEXXZ) picedit.obj
Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Image::Image(void)" (__imp_??0Image@Magick@@QAE@XZ) referenced in function "public: void __thiscall picedit::OnBnClickedButton1(void)" (?OnBnClickedButton1@picedit@@QAEXXZ) picedit.obj
Any one has any idea about what I am doing wrong ? I have all my libs and dlls in a folder, the path of which is inside the linker properties.
Thanks in Advance