I am trying to build a Ruby C Extensions that uses libcurl. So far I have built it sucessfully on Os X. However I am much less experienced developing in Windows and am not exactly sure how to go about doing this.
So far I can compile a Ruby C Extensions using extconf.rb and nmake from the Visual Studio Command Prompt more or less by following these instructions
http://blogs.law.harvard.edu/hoanga/2006/12/14/getting-a-ruby-c-extension-to-compile-on-windows/
However my Extension links libcurl, there is a line in extconf.rb to check for this
# Make sure the cURL library is installed.
have_library("curl")
When creating the makefile, I get
checking for main() in curl.lib... no
creating Makefile
and when running nmake, I get
fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
This is all expected, since its not installed. I have downloaded curl-7.26.0-devel-mingw64 (I think this is appropriate for Windows 7)
I just cant figure out in the Windows environment where I should put either /bin or /include so that my compiler can find them.