title: Magick++ in VS2010 - unresolved external symbol
body: <p>I'm trying to use ImageMagick Magick++ for a C++ Project in VS2010.
  I installed the Library from here: <a href="https://www.imagemagick.org/script/download.php" rel="nofollow noreferrer">klick</a></p>
  <p>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:</p>
  <pre><code>#include &lt;Magick++.h&gt;
  void main(int argc, char ** argv){
      InitializeMagick(*argv);
  }
  </code></pre>
  <p>But this does not work!
  VS2010 returns the following errors:</p>
  <pre><code>error LNK2001: unresolved external symbol &quot;__declspec(dllimport) void __cdecl    Magick::InitializeMagick(char const *)&quot; (__imp_?InitializeMagick@Magick@@YAXPBD@Z)
  error LNK1120: 1 unresolved externals
  </code></pre>
  <p>What am I doing wrong?</p>
  <p>Thanks very much for your help!</p>
  <p><strong>UPDATE:</strong></p>
  <p>Set Linker -&gt; Input -&gt; Additionnal Dependencies to:</p>
  <pre><code>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
  </code></pre>
  <p>And Linker -&gt; General -&gt; Additionnal Library Directories to:</p>
  <pre><code>C:\Program Files\ImageMagick-6.6.6-Q16\lib
  </code></pre>
  <p>It still results in the same error...</p>
  <p><strong>UPDATE 2</strong></p>
  <p>Opening the .lib files in C:\Program Files\ImageMagick-6.6.6-Q16\lib results in this error:
  <img src="https://i.stack.imgur.com/KuHT2.png" alt="alt text" /></p>
  <p><strong>UPDATE 3</strong></p>
  <p>CORE_RL_Magick++_.lib does contain ?InitializeMagick@Magick@@YAXPEBD@Z, but not ?InitializeMagick@Magick@@YAXPBD@Z. Does this mean the .lib file is corrupted?</p>
  <p><strong>UPDATE 4</strong></p>
  <p>I solved my problem by manually compliling the .lib files.
  Thanks to all!</p>