You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i use the curl-7.66.0 version to complie lib Release - Lib OpenSSL - Lib LibSSH2 with vs2017,the compile is ok.
it generate libcurl.lib ,i use libcurl.lib for the project,it can't work!it show like this:
Error LNK2019 unresolved external symbol _Curl_ssh_init referenced in function _global_init
Error LNK2019 unresolved external symbol _Curl_ssh_cleanup referenced in function _curl_global_cleanup
Error LNK2001 unresolved external symbol _Curl_handler_scp
Error LNK2001 unresolved external symbol _Curl_handler_sftp
Error LNK2019 unresolved external symbol _Curl_ssh_version referenced in function _curl_version
Error LNK1120 5 unresolved externals
I would strongly discourage everyone from downloading and using a library from a random site that isn't vetted and trusted. It is then much better to get the source package and built it yourself to be completely sure what you're running and how to (re-)produce it etc.
Activity
bagder commentedon Oct 16, 2019
bagder commentedon Oct 24, 2019
No response and lots of people have built curl without getting this. Closing.
zogvm commentedon Nov 15, 2019
vs prj miss : lib\vssh\ and lib\vquic dir .
add .c file to prj .
just ok
bagder commentedon Nov 15, 2019
@zogvm What files are you then talking about that need this fix?
xMikan09 commentedon Nov 16, 2019
it worked after I put :
#pragma comment(lib, "libcurl_imp.lib")
but I forgot where I downloaded the "libcurl_imp.lib" since the project only creates "libcurl.lib"
bagder commentedon Nov 16, 2019
I would strongly discourage everyone from downloading and using a library from a random site that isn't vetted and trusted. It is then much better to get the source package and built it yourself to be completely sure what you're running and how to (re-)produce it etc.
jay commentedon Nov 17, 2019
I don't think what @xMikan09 said is related. Otherwise this is a bug though. Please try fix in #4607.
projects: Fix Visual Studio projects SSH builds