Asked by:
What can I solve the problem "error LNK2019: unresolved external symbol"

Question
-
I'm trying to compile the raptor parser at windows.
I can't solve the Linking error.
Plz.. help me.
The error message like that.
______________________________________________________________________
Creating library .\Debug/raptor.lib and object .\Debug/raptor.exp
3>raptor_rss.obj : error LNK2019: unresolved external symbol _strcasecmp referenced in function _raptor_rss_start_element_handler
3>raptor_www.obj : error LNK2019: unresolved external symbol __imp__curl_global_init referenced in function _raptor_www_init
3>raptor_www.obj : error LNK2019: unresolved external symbol __imp__curl_global_cleanup referenced in function _raptor_www_finish
3>raptor_www_curl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_setopt referenced in function _raptor_www_curl_init
3>raptor_www_curl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function _raptor_www_curl_init
3>raptor_www_curl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_cleanup referenced in function _raptor_www_curl_free
3>raptor_www_curl.obj : error LNK2019: unresolved external symbol __imp__curl_slist_free_all referenced in function _raptor_www_curl_fetch
3>raptor_www_curl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_getinfo referenced in function _raptor_www_curl_fetch
3>raptor_www_curl.obj : error LNK2019: unresolved external symbol __imp__curl_easy_perform referenced in function _raptor_www_curl_fetch
3>raptor_www_curl.obj : error LNK2019: unresolved external symbol __imp__curl_slist_append referenced in function _raptor_www_curl_fetch
3>.\Debug/raptor.dll : fatal error LNK1120: 10 unresolved externals-------------------------------------------------------------------------------------------------------------------------
I'm waiting your answer.
Thursday, April 26, 2007 8:30 AM
All replies
-
Hi Ms luckforyou.
It's really hard to assume limker error without code.
I guess you should make sure that each functions are existed in some library.
Please reference this msdn page,
http://msdn2.microsoft.com/en-us/library/799kze2z(vs.71).aspxThursday, April 26, 2007 11:02 AM -
Thanks for your answer.
I solved problem related "curllib", but there are two problems.
I just think it relate "string.h" but it aleady include the head file.
If you have any idea, plz comment me.
________________________________________________________________________________________________
2>raptor_rss.obj : error LNK2019: unresolved external symbol _strcasecmp referenced in function _raptor_rss_start_element_handler
2>.\Debug/raptor.dll : fatal error LNK1120: 1 unresolved externals_________________________________________________________________________________________________
Have a nice day!
Friday, April 27, 2007 5:15 AM -
I have solved the above link error's by using below settings.
Project properties -> all releases -> configuration properties -> linker -> input -> and set
additional dependencies to = libcurl.lib ws2_32.lib winmm.lib wldap32.libAdd new macros at the preprocessors = ;BUILDING_LIBCURL;HTTP_ONLY
Pls let me know if you could not able to resolved the link issues
- Proposed as answer by infant_coder Thursday, November 24, 2011 9:37 AM
Monday, March 29, 2010 7:03 AM -
>Pls let me know if you could not able to
>resolved the link issues
Additional info added to an existing thread
is sometimes helpful. But just in case you
hadn't noticed, you have responded to a
thread which is almost three years old.
I expect the original poster has moved on
to other issues by now. Of course, others
encountering the same problem may benefit
from your solution.
- WayneMonday, March 29, 2010 7:27 AM -
http://curl.haxx.se/libcurl/c/Using-libcurl-with-SSH-support-in-Visual-Studio-2008.pdf
Most useful link for curl users in windows..
Friday, November 5, 2010 4:23 PM -
i had the same problem, at last i find that i haven't link the .lib file, so use the "#pragma comment(lib, "libcurl_imp.lib") is ok.
note: my curl library file name is libcurl_imp.lib, use your corresponding file name is ok.
Friday, October 25, 2013 7:41 AM -
HI ...
I had done the changes what you mentioned.
Error LNK2019 unresolved external symbol curl_easy_init referenced in function down_acp_tests
but still, I'm getting themMonday, June 4, 2018 9:29 AM