Error de vinculación cURL de C++ "símbolo externo no resuelto _curl_easy_"
Frecuentes
Visto 2,201 equipos
5
I am facing issues with the C++ cUrl Library on Windows, using Visual Studio 2012.
Tengo un CGI project which generates a .cgi file. This project includes another project called de Recursos el cual es un Static Library Project.
En el caso de Recursos project, I have the code which uses cUrl and includes curl/curl.h
. I have referenced the Preprocessor Definition CURL_STATICLIB
.
Entonces en mi CGI Project, I have linked libcurl.lib
a mi proyecto en Configuration Properties > Linker > Additional Dependencies.
But when I try to build the Solution, I still have those errors :
error LNK2001: unresolved external symbol _curl_easy_setopt in Library.lib(fct_util.obj)
error LNK2001: unresolved external symbol _curl_easy_perform in Library.lib(fct_util.obj)
error LNK2001: unresolved external symbol _curl_easy_init in Library.lib(fct_util.obj)
error LNK2001: unresolved external symbol _curl_easy_cleanup in Library.lib(fct_util.obj)
I already took a look at this topic : Símbolos no resueltos al vincular un programa usando libcurl, as well as other related topics but couldn't find a solution for my problem.
Me estoy perdiendo de algo ?
Saludos cordiales.
1 Respuestas
-1
Credit to this guy helped me get further than any docs.
Still have a couple more issues. https://www.youtube.com/watch?v=wjNyT5PhNvI
Then do this , someone in the video comments Very important after you do everything in video. Need to navigate back to solution right click properties (see below comment)
"Thanks , it worked after i added Normaliz.lib;Ws2_32.lib;Wldap32.lib;Crypt32.lib;advapi32.lib in Additional Dependencies(property->linker->input)"
respondido 03 mar '19, 00:03
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas c++ visual-studio visual-studio-2012 curl unresolved-external or haz tu propia pregunta.