title: Cannot compile code with Magick++ (library issue)
body: <p>I'm currently trying to get a simple c++ code to compile with the Magick++ API. The actual code I'm comipling is dirt simple. Just a "hello world" with #include Magick++.h at the top.</p>
  
  <p>The problem is that the compiler cant seem to find -lMagick++. See the error below</p>
  
  <p>ImageMagick was installed from binaries in cygwin over windows 7. I did the following configuration after install</p>
  
  <pre><code>export MAGICK_HOME="$HOME/ImageMagick-6.8.8"
  export PATH="$MAGICK_HOME/bin:$PATH"
  export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MAGICK_HOME/lib"
  export PKG_CONFIG_PATH="$MAGICK_HOME/lib/pkgconfig"
  </code></pre>
  
  <p>CPP file:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;Magick++.h&gt;
  using namespace std;
  
  int main( int argc, char ** argv) 
  {
      InitializeMagick(*argv);
      cout&lt;&lt;"Hello Magick++"&lt;&lt;endl;
      return 0;
  }
  </code></pre>
  
  <p>Compiled with:</p>
  
  <pre><code>g++ `Magick++-config --cppflags` -o hello hello_world.cpp \ `Magick++-config --ldflags --libs`
  </code></pre>
  
  <p>Which spits back:</p>
  
  <pre><code>g++:  -lMagick++: No such file or directory 
  cc1plus: warning: command line option "-fopenmp" is valid for D but not for C++
  hello_world.cpp: In function `int main(int, char**)':
  hello_world.cpp:7: error: `InitializeMagick' undeclared (first use this function)
  hello_world.cpp:7: error: (Each undeclared identifier is reported only once for each function it appears in.)
  </code></pre>