title: Error when running example program Magick++ imporing libraries into Visual C++ 2010
body: <p>I copied all the libraries and header files in to Visual C++ 2010 but couldn't be able to run any of the example program as i am continously getting this error for the past 2 days.</p>
  
  <pre><code>1&gt;e:\program files (x86)\imagemagick-6.8.1-q16\include\magick++\stl.h(1867): warning C4251: 'Magick::x11DisplayImage::_display' : class 'std::basic_string&lt;_Elem,_Traits,_Ax&gt;' needs to have dll-interface to be used by clients of class 'Magick::x11DisplayImage'
  1&gt;          with
  1&gt;          [
  1&gt;              _Elem=char,
  1&gt;              _Traits=std::char_traits&lt;char&gt;,
  1&gt;              _Ax=std::allocator&lt;char&gt;
  1&gt;          ]
  1&gt;man.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Magick::Image::~Image(void)" (__imp_??1Image@Magick@@UAE@XZ) referenced in function _main
  1&gt;man.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Magick::Image::write(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;)" (__imp_?write@Image@Magick@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
  1&gt;man.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Magick::Image::pixelColor(long,long,class Magick::Color const &amp;)" (__imp_?pixelColor@Image@Magick@@QAEXJJABVColor@2@@Z) referenced in function _main
  1&gt;man.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Magick::Color::~Color(void)" (__imp_??1Color@Magick@@UAE@XZ) referenced in function _main
  1&gt;man.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Geometry::~Geometry(void)" (__imp_??1Geometry@Magick@@QAE@XZ) referenced in function _main
  1&gt;man.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Image::Image(class Magick::Geometry const &amp;,class Magick::Color const &amp;)" (__imp_??0Image@Magick@@QAE@ABVGeometry@1@ABVColor@1@@Z) referenced in function _main
  1&gt;man.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Geometry::Geometry(char const *)" (__imp_??0Geometry@Magick@@QAE@PBD@Z) referenced in function _main
  1&gt;man.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Magick::Color::Color(char const *)" (__imp_??0Color@Magick@@QAE@PBD@Z) referenced in function _main
  1&gt;man.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl Magick::InitializeMagick(char const *)" (__imp_?InitializeMagick@Magick@@YAXPBD@Z) referenced in function _main
  1&gt;MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
  1&gt;C:\Users\Z-Axis\documents\visual studio 2010\Projects\sassada\Debug\sassada.exe : fatal error LNK1120: 10 unresolved externals
  ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
  </code></pre>
  
  <p>it merits mentioning that i downloaded Magick++ dll.</p>
  
  <p><strong>Updated:</strong></p>
  
  <p>After including libraries that comes with Magick++,</p>
  
  <p>I am getting these errors now,</p>
  
  <pre><code>1&gt;e:\program files (x86)\imagemagick-6.8.1-q16\include\magick++\stl.h(1867): warning C4251: 'Magick::x11DisplayImage::_display' : class 'std::basic_string&lt;_Elem,_Traits,_Ax&gt;' needs to have dll-interface to be used by clients of class 'Magick::x11DisplayImage'
  1&gt;          with
  1&gt;          [
  1&gt;              _Elem=char,
  1&gt;              _Traits=std::char_traits&lt;char&gt;,
  1&gt;              _Ax=std::allocator&lt;char&gt;
  1&gt;          ]
  1&gt;MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
  1&gt;C:\Users\Z-Axis\documents\visual studio 2010\Projects\sassada\Debug\sassada.exe : fatal error LNK1120: 1 unresolved externals
  ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
  </code></pre>
  
  <p>What does this mean ?</p>
  
  <pre><code>needs to have dll-interface to be used by clients of class 'Magick::x11DisplayImage'
  </code></pre>