Here is the steps how to do that. but you may get some additional errors. those are need to figure out by yourself. This is Just a guidance.
You should have two project in Visual Studio Solution
- libcurl project (source code downloaded from curl web. this may help you for this)
- your project
Build libcurl as a static lib.(right click libcurl project in solution explorer -> properties -> configuration properties -> General-> change configuration Type to Static Library (.lib))
Then right click your project go to propertied ->configuration properties ->Linker -> general
In "additional Library directories" add the path to above curl.lib.
- then go to propertied ->configuration properties ->Linker -> input
- add libcurl.lib name to
additional dependencies.
- then go to properties -> configuration properties -> General
- If your project uses MFC or ATL change
use of MFC and use of ATL to use MFC in static library and use ATL in static library accordingly.
- then build the solution.
- Enjoy libcurl :)