Open GoogleCodeExporter opened 9 years ago
These are the same errors I get when I checkout the twitterClient solution and
attempt to convert it to VC++ 2005, the same 7 curl linking errors for the same
symbols.
Am I missing a library somewhere?
Original comment by cesar...@gmail.com
on 29 Nov 2011 at 10:37
Built CUrl from source and used the static library that resulted from that
successful build, and I am still seeing the same Linking errors any help or
point in the right direction would be greatly appreciated.
Original comment by cesar...@gmail.com
on 30 Nov 2011 at 5:26
Building the Solution in VC++ 6 doesn't do any better. The same 7 functions are
improperly linked:
twitcurl.lib(twitcurl.obj) : error LNK2001: unresolved external symbol
__imp__curl_easy_init
twitcurl.lib(twitcurl.obj) : error LNK2001: unresolved external symbol
__imp__curl_easy_cleanup
twitcurl.lib(twitcurl.obj) : error LNK2001: unresolved external symbol
__imp__curl_easy_setopt
twitcurl.lib(twitcurl.obj) : error LNK2001: unresolved external symbol
__imp__curl_slist_free_all
twitcurl.lib(twitcurl.obj) : error LNK2001: unresolved external symbol
__imp__curl_easy_perform
twitcurl.lib(twitcurl.obj) : error LNK2001: unresolved external symbol
__imp__curl_slist_append
twitcurl.lib(twitcurl.obj) : error LNK2001: unresolved external symbol
__imp__curl_easy_getinfo
Any word on how I can fix this, and use this API in my project?
Original comment by cesar...@gmail.com
on 1 Dec 2011 at 4:48
[deleted comment]
I fixed this issue by downloading CUrl source and including it in my
project instead of Linking CUrl, and this corrected the issue.
Original comment by cesar...@gmail.com
on 13 Mar 2012 at 8:47
[deleted comment]
If your problems are related to Debug config, try to add CURL_STATICLIB
proprocessor macro for twitCurl project (debug config)
Original comment by jkra...@gmail.com
on 13 Mar 2012 at 8:57
@cesareof
I have the exact same issue. What do you mean you downloaded the curl source? I
downloaded the files using an SVN program and I link it into my project. How
did you include it directly into your project?
Thanks
Original comment by bie...@student.breckschool.org
on 31 Jul 2012 at 6:03
CUrl is the code I needed to download so I could add it to my project:
Project->Properties->Linker->Input->Additional Dependencies
and add the libcurl_imp.lib there.
Right click on your project in Visual Studio and select Add -> Existing Item
and select the headers and cpp files that make up the twitcurl source.
This is just a workaround that I had to employ in order to get this project to
work so I could update pragmatically update a given Twitter feed.
Original comment by cesar...@gmail.com
on 31 Jul 2012 at 8:48
All I have is libcurl.lib. Where can I find libcurl_imp.lib?
Original comment by bie...@student.breckschool.org
on 31 Jul 2012 at 9:55
Download the curl project and do a static build of that project and use the
resulting library to include it in your project
Original comment by cesar...@gmail.com
on 31 Jul 2012 at 10:51
I'm sorry. I'm still sort of new to programming, but what is the curl project?
Do you mean the curl source on this google code page? Or are you referencing a
separate page?
Original comment by bie...@student.breckschool.org
on 1 Aug 2012 at 1:12
Ok so I was able to get the libcurl_imp.lib, and I included it like you said,
but I'm still getting the same errors. I also added the existing cpp's and h's
to my project. I included them from the libtwitcurl folder, but I didn't go
into any sub folders, should I be adding these files from somewhere else?
Original comment by bie...@student.breckschool.org
on 1 Aug 2012 at 2:33
I attached a quick VS2005 Project that I created using this techinique that
builds properly and works using the twitcurl API.
Original comment by cesar...@gmail.com
on 1 Aug 2012 at 8:07
Attachments:
Hello,
I built x64 lib for openssl ( as static library ), libcurl ( also static
library ) and twitcurl library. And with the included twitterClient sample
project, it throws the same errors people mentioned.
So, I went back to x86 version and built the twitcurl library as is. And in the
twitterClient sample project, there is already a prebuilt twitcurl library.
But that project also threw the same error messages.
Did someone try to solve this problem properly? I checked the libcurl, openssl
library to see if there is anything wrong but there was no such thing.
in the twitcurl library, I didn't find anything special.
Thanks,
Original comment by jongamp...@gmail.com
on 30 Jun 2014 at 5:00
BTW, I used Visual Studio 2010.
Original comment by jongamp...@gmail.com
on 30 Jun 2014 at 5:00
Looks to be related to this issue :
https://code.google.com/p/twitcurl/issues/detail?can=2&start=0&num=100&q=&colspe
c=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=
40
Original comment by jongamp...@gmail.com
on 30 Jun 2014 at 7:41
There were other kind of LNK2019 errors.
Even with "as is" twitterClient sample project, it complaint like :
std::allocator<char> > &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >)"
(?search@twitCurl@@QEAA_NAEAV?
It looks not to have added std::string stuff properly.
I know that /Zl option can be involved, but there was not such option.
How to go around this problem?
just add the source code of twitcurl library to your host project. And link
libcurl_a.lib (static) libcurl.lib ( stub file to its DLL file ).
Original comment by jongamp...@gmail.com
on 30 Jun 2014 at 7:49
Original issue reported on code.google.com by
cesar...@gmail.com
on 29 Nov 2011 at 7:38