Magick++ in VS2010 - unresolved external symbol

Posted by FlashFan on Stack Overflow See other posts from Stack Overflow or by FlashFan
Published on 2010-12-21T12:26:56Z Indexed on 2010/12/21 12:54 UTC
Read the original article Hit count: 192

Hey guys! I'm trying to use ImageMagick Magick++ for a C++ Project in VS2010. I installed the Library from here: klick

Then in my Project, I added c:/program files/ImageMagick-6.6.6-Q16/include to the include folders. Then I tried to use Magick++ with this code:

#include <Magick++.h>
void main(int argc, char ** argv){
    InitializeMagick(*argv);
}

But this does not work! VS2010 returns the following errors:

error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl    Magick::InitializeMagick(char const *)" (__imp_?InitializeMagick@Magick@@YAXPBD@Z)
error LNK1120: 1 unresolved externals

What am I doing wrong?

Thanks very much for your help!

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio-2010