Closed Tomentos closed 6 years ago
I'm not sure what went wrong but maybe you need to link some windows libraries like winsock. I think it's Ws2_32.lib
for sockets and crypt32.lib
for cryptographic stuff.
Alright I was able to solve it.
I included Ws2_32.lib
and crypt32.lib
already was included.
But those didn't do anything.
I added Wldap32.lib
in "Property pages ==> Linker ==> Input ==> Additional Dependencies" which reduced the errors to 3 Errors and 1 Warning.
Then i recompiled curl with the following command:
nmake /f Makefile.vc mode=dll VC=17 ENABLE_IDN=no
When you do that you need to go to "Property pages ==> Linker ==> Input ==> Additional Dependencies" again and change libcurl_a.lib
to libcurl.lib
I don't know how others manage their folders but if you include libcurl.lib
from the original folder you need to change the name of the included folder too.
Note: I use Visual Studio 2017
So I used setup.py to compile install the library and compiled curl manually. I linked everything in the propertys of the project but somehow I always get these errors. I already tried to change the "VC" version when I compiled curl with "nmake" but with every version I get the same error. I also added "CURL_STATICLIB" in the "Preprocessor Definitions." Everything else is working so far.
Here is the code:
Here is the exact error list: