c++ - Compile Curl Visual Studio - unresolved external symbol -
i need use static library of libcurl , found this github rep generate libraries.
now, i'm trying compile simple piece of code use curl using static library, libcurl_a.lib, without success.
at first, miss -dcurl_staticlib flag , got undefined reference errors:
undefined reference `curl_easy_init' undefined reference `curl_easy_setopt' undefined reference `curl_easy_setopt' undefined reference `curl_easy_perform' undefined reference `curl_easy_strerror' undefined reference `curl_easy_cleanup'
the flag solve it, got these ones:
unresolved external symbol __imp__strtoll unresolved external symbol __imp__strtoll unresolved external symbol __imp__strtoll unresolved external symbol __imp__strtoll referenced in function _curl_ftp_parselist unresolved external symbol __imp__strtoll unresolved external symbol __imp__strtoll unresolved external symbol __imp__strtoll unresolved external symbol __imp__strtoll unresolved external symbol __imp__gettickcount64@0 referenced in function _curlx_tvnow unresolved external symbol __imp__initializecriticalsectionex@12 referenced in function _init_thread_sync_data unresolved external symbol __ltod3 referenced in function _getinfo_double unresolved external symbol __ltod3 unresolved external symbol __dtol3 referenced in function _curl_pgrsupdate unresolved external symbol ___report_rangecheckfailure referenced in function _base64_encode
i'm stuck here , don't know how solve unresolved external symbols.
anybody can me?
it linking against wrong version of kernel32.lib. make x64 build? if so, need correct library path.
Comments
Post a Comment