So i have came along with cURL as a very nice library and working very fine in OSX. But on windows now i have got big troubles with getting ready with this library. I googled now for about 2 days and tried over a dozen (in detail) different ways to get this ready. Without any success at all.
Here are some ways I basically tried:
- The direct Download: The problem here already starts with the right download. The official download page is pretty confusing, so i considered this "cURL Download Wizard" > "libcurl development" which gives me a version, that i should be able to include into any project. But how exactly to include it? In ANY instructions out there it leads me to directories i dont even have. Almost always this "curllib.lib" is mentioned. I downloaded about 6 different versions on that downloadpage, in none of them there is this file. (See for example this instruction)
- Git + CMake: As a solution on the aboves Link there is suggested to use git clone on this. I did all the instructions there and also get the Projects generated with just warnings. But here it says as well:
After building install target, your will find bin/include/lib folders in C:\curl.vc12
Well, i did not really get his point of "build install target", i just build the entire project map as it comes. Compiles fine (115 succeeded, 0 failed, 2 skipped). But now C:\curl.vc12 is not there. What do i have to pre-setup before compiling this?
- NuGet: The idea comes from the link in point (1) again, a different solution with NuGet.
WithSuccessfully added 'curl 7.30.0.2' to test.
it also seemed nice, but compilingsimple.c
leads to a bunch ofunresolved external symbol
linker errors. But a solution is provided:
Make sure the include directory and lib directory are specified under the Visual C++ directories in project properties.
So inProject > Properties > VC++ Properties > "Include Directories"
and
Project > Properties > VC++ Properties > "Library Directories"
as well as inProject > C/C++ > General > "Additional Include Directories"
and inProject > Linker > General > "Additional Library Directories"
I desperately added the \packages\ path from my project folder.
As mentioned in the instructions, I addedlibcurl.lib;libeay32.lib;ssleay32.lib;Ws2_32.lib;libssh2.lib;zlib.lib;wldap32.lib;
toProject > Linker > Input > "Additional Dependencies"
.
All that done, theunresolved external symbol
errors are gone! Therefore I get just one error sayingcannot open file 'libcurl.lib'
. What can I do here?
I am pretty new to all that. But I am trying really hard now to get this finally to work. So what can I do?
I work with Visual Studio 2013 Community Edition. The currently most recent version of cURL is 7.42.1
.
Any help is highly welcome!