0

My System information : Windows Server 2008 R2 Standard, 64 bit


I am trying to use Curl(http://curl.haxx.se/) Library with my c++ code(Visual Studio MFC). I'm trying to build libcurl.dll from the curl source using nmake (Visual Studio 10). I need to run the following command from Visual Studio Command Prompt:

nmake /f Makefile.vc mode=dll

I get the following error:Error

Rana
  • 1,675
  • 3
  • 25
  • 51
  • Have you already tried `build.bat` instead of `nmake` ? https://github.com/blackrosezy/build-libcurl-windows – mikedu95 Jan 11 '16 at 17:05
  • Just tried it, The build.bat does not output anything. build.bat file opens and closes right away, doesn't seem like it did anything. – Rana Jan 11 '16 at 17:14
  • Have you carefully follwed the steps of installation described here: http://curl.haxx.se/docs/install.html – mikedu95 Jan 11 '16 at 17:16
  • P.S.: Read the "MSVC from command line" or "MSVC IDE" section depending on your preference (commande line or IDE) – mikedu95 Jan 11 '16 at 17:19
  • I was successfully able to produce the libcurl.dll with the "MSVC IDE" method without any errors. I included this libcurl.dll with my project but when I try to #include , it cannot be found. – Rana Jan 11 '16 at 18:41

1 Answers1

0

Thanks to mikedu95, I was able to solve this.

Follow instruction from curl.haxx.se/docs/install.html ("MSVC IDE" in my case)

Then Follow:Getting LibCurl to work with Visual Studio 2013

This will setup everything you need

Community
  • 1
  • 1
Rana
  • 1,675
  • 3
  • 25
  • 51