So, how do you get started with cURL?
Visual Studio 2005 project files that get you started.
Problems that were resolved and how:
Mostly linker problems:
First linker problem you get
error LNK2019: unresolved external symbol __imp__curl_global_cleanup referenced in function _main error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function _main error LNK2019: unresolved external symbol __imp__curl_easy_perform referenced in function _main error LNK2019: unresolved external symbol __imp__curl_easy_setopt referenced in function _main error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function _main error LNK2019: unresolved external symbol __imp__curl_global_init referenced in function _main
* Resolved by following yang’s grandmother’s 14 step process
SECOND linking problem you get (after resolving the first)
Linking... curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_unbind_s referenced in function _Curl_ldap curllib.lib(ldap.obj) : error LNK2019: unresolved external symbol __imp__ldap_msgfree referenced in function _Curl_ldap
* Resolved by linking in wldap32.lib by yang
6 Comments
This fucking piece of shit didn’t help me one little fucking bit.
I followed it EXACTLY, SEVERAL TIMES!
All it did was give me more of the “unresolved external” errors.
Fuck this.
the only thing missing (that resolves the above problem) is to (last thing in step 15)
right click MyFirstAttempt
properties
all releases
configuration properties
linker
input
and set
additional dependencies
to
libcurl.lib ws2_32.lib winmm.lib wldap32.lib
its the wldap32.lib which is required, see:
http://curl.haxx.se/mail/lib-2007-11/0300.html
@Ryan: This is why software developers are so highly paid. Dumbasses like you dont have the patience to put any effort forth.
Thanks. One less person to compete with.
C’mon now Anonymous, you can’t say you haven’t ever been that frustrated before..
Just note, I am also trying to fix “unresolved external symbol __imp_ curl_easy_setopt” and adding the libs Ryan say doesn’t help.
Ok, if that can help other people, I found the problem :)
I’ve been so lucky to find it…
You have to add the preprocessors:
;BUILDING_LIBCURL;HTTP_ONLY
And, the libs that Ryan mentioned.
This way it works…
One Trackback/Pingback
[...] in misc Instead of fighting with libcurl you could just use WinInet for your http needs if you are married to the Windows [...]