I am trying to use ImageMagick Magick ++ for a C ++ project in VS2010. I installed the library here: klick
Then in my project I added the c: /program/ImageMagick-6.6.6-Q16/include files to the include folders. Then I tried using Magick ++ with this code:
#include <Magick++.h> void main(int argc, char ** argv){ InitializeMagick(*argv); }
But that will 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?
Many thanks for your help!
UPDATE:
Install Linker -> Input -> Additionnal Dependencies for:
kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;CORE_RL_Magick++_.lib
And Linker β General β Additive Library Directories:
C:\Program Files\ImageMagick-6.6.6-Q16\lib
This still leads to the same error ...
UPDATE 2
Opening .lib files in C: \ Program Files \ ImageMagick-6.6.6-Q16 \ lib leads to an error: 
UPDATE 3
CORE_RL_Magick ++ _. does lib contain? InitializeMagick @Magick @@ YAXPEBD @Z, but not? InitializeMagick @Magick @@ YAXPBD @Z. Does this mean that the .lib file is corrupt?
UPDATE 4
I solved my problem by manually compiling .lib files. Thanks everyone!
source share