title: rmagick not building on windows 7 undefined reference errors
body: <p>Hey I know there are a lot of rmagick threads up but I havn't been able to find anything on the current errors I am getting. Everyone gets to the point I am at and it just seems to work for them. </p>
  
  <p>So I have ImageMagick 6.7.1-Q16 installed, I included it in my path without spaces and I installed the c/c++ headers. I have the Dev-Kit properly installed and working I am trying to now install the rmagick gem using this line:</p>
  
  <pre><code>gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagick-6.7.1-Q16/lib --   with-opt-include:/ImageMagick-6.7.1-Q16/include
  </code></pre>
  
  <p>which I came up with after looking <a href="http://phosphor-escence.blogspot.com/2010/10/install-rmagick-on-mingw-and-msys.html" rel="nofollow noreferrer">here</a> and at several other places including <a href="https://stackoverflow.com/questions/5811388/imagemagick-core-rl-magick-dll-not-found-or-how-to-install-rmagick-on-window">this post</a>.
  This seems to have gotten me the farthest but when I run that command it sits for several minutes trying to build the gem and then gives me a huge list of undefined reference errors in all of the .c files inside C:\Ruby192\lib\ruby\gems\1.9.1\gems\rmagick-2.13.1\ext\RMagick/</p>
  
  <p>I can't see all the files it says have reference errors but a few of them are:</p>
  
  <pre><code>rmutil.c undefined reference to 'CloneImageInfo'
  
  rmimage.c undefined reference to 'DestroyExceptionInfo'
  
  rminfo.c undefined reference to 'GetImageOption'
  
  rmmontage.c undefined reference to 'CloneImageInfo'
  
  rmain.c undefined reference to 'SetFatalErrorHandler'
  
  rmpixel.c undefined reference to 'Allocate Image'
  
  rmstruct.c undefined reference to 'CloneString'
  </code></pre>
  
  <p>there are hundreds of errors but they all seem to reference the same 5-6 resources. </p>
  
  <p>I have been working on this for a day and a half now and am really starting to get frustrated any help would be appreciated.</p>