I am trying to build a project that uses Imagemagick library. I have done the following:
- Added Libraries in VC++ Directories in Tools -> Options
- Added "C:\ImageMagick-6.8.6-Q16\include\Magick++";"C:\ImageMagick-6.8.6-Q16" in Project Properties -> Configuration -> C/C++ -> General -> Additional Include Libraries
- Added "C:\ImageMagick-6.8.6-Q16\lib";"C:\ImageMagick-6.8.6-Q16" in Project Properties -> Configuration -> Linker -> General -> Additional Library Directories
- Added CORE_RL_magick_.lib CORE_RL_Magick++_.lib CORE_RL_wand_.lib X11.lib in Project Properties -> Configuration -> Linker -> Input -> Additional Dependancies
- Added C:\ImageMagick-6.8.6-Q16 in Environment Variables PATH
However, when building the project, I get several LNK2019 errors, the first is:
Error 28 error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Magick::Image::~Image(void)" (__imp_??1Image@Magick@@UAE@XZ) referenced in function "class Imagen & __cdecl lee(char *,int)" (?lee@@YAAAVImagen@@PADH@Z) inout.obj