cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

[cURLpp] Help with cURLpp in VB .NET

From: Matt Kirschnick <matttk_at_gmail.com>
Date: Mon, 18 Apr 2005 11:59:06 -0400

Hi,

I'm using Visual C++ .NET on Windows XP Home SP2...

I've been trying to get libcurl to work with the curlpp wrapper. I
have managed to compile libcurl into a .lib/.dll but cannot do the
same with curlpp. Well... I have compiled a dll but my project does
not accept it.

I have instead #included the required files in my project but am still
getting errors.

E.g.

Linking...
Creating library Debug/test_project.lib and object Debug/test_project.exp
urlReader.obj : error LNK2019: unresolved external symbol "public:
virtual void __thiscall cURLpp::Easy::setOpt(class cURLpp::OptionBase
const &)" (?setOpt_at_Easy@cURLpp@@UAEXABVOptionBase_at_2@@Z) referenced in
function "private: int __thiscall urlReader::saveData(void)"
(?saveData_at_urlReader@@AAEHXZ)
urlReader.obj : error LNK2019: unresolved external symbol "void
__cdecl cURLpp::initialize(long)" (?initialize_at_cURLpp@@YAXJ_at_Z)
referenced in function "private: int __thiscall
urlReader::saveData(void)" (?saveData_at_urlReader@@AAEHXZ)
urlReader.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall cURLpp::OptionList::getOpt(class
cURLpp::OptionBase *)"
(?getOpt_at_OptionList@cURLpp@@UAEXPAVOptionBase_at_2@@Z)
urlReader.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall cURLpp::Easy::setOpt(class cURLpp::OptionBase
*)" (?setOpt_at_Easy@cURLpp@@UAEXPAVOptionBase_at_2@@Z)
urlReader.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall cURLpp::Easy::setOpt(class cURLpp::OptionList
const &)" (?setOpt_at_Easy@cURLpp@@UAEXABVOptionList_at_2@@Z)
urlReader.obj : error LNK2019: unresolved external symbol "public:
virtual __thiscall cURLpp::OptionList::~OptionList(void)"
(??1OptionList_at_cURLpp@@UAE_at_XZ) referenced in function
__unwindfunclet$??0Easy_at_cURLpp@@QAE_at_XZ$0
urlReader.obj : error LNK2019: unresolved external symbol "public:
__thiscall cURLpp::CurlHandle::CurlHandle(void)"
(??0CurlHandle_at_cURLpp@@QAE_at_XZ) referenced in function "public:
__thiscall cURLpp::Easy::Easy(void)" (??0Easy_at_cURLpp@@QAE_at_XZ)
urlReader.obj : error LNK2019: unresolved external symbol "public:
__thiscall cURLpp::OptionList::OptionList(void)"
(??0OptionList_at_cURLpp@@QAE_at_XZ) referenced in function "public:
__thiscall cURLpp::Easy::Easy(void)" (??0Easy_at_cURLpp@@QAE_at_XZ)
urlReader.obj : error LNK2019: unresolved external symbol "public:
virtual __thiscall cURLpp::CurlHandle::~CurlHandle(void)"
(??1CurlHandle_at_cURLpp@@UAE_at_XZ) referenced in function "public: virtual
__thiscall cURLpp::Easy::~Easy(void)" (??1Easy_at_cURLpp@@UAE_at_XZ)
urlReader.obj : error LNK2001: unresolved external symbol "public:
virtual bool __thiscall cURLpp::OptionBase::operator<(class
cURLpp::OptionBase const &)const "
(??MOptionBase_at_cURLpp@@UBE_NABV01@@Z)
urlReader.obj : error LNK2019: unresolved external symbol "public:
enum cURL::CURLoption __thiscall
cURLpp::OptionBase::getOption(void)const "
(?getOption_at_OptionBase@cURLpp@@QBE?AW4CURLoption_at_cURL@@XZ) referenced
in function "public: virtual void __thiscall cURLpp::Option<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > >::print(void)const "
(?print@?$Option_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@cURLpp@@UBEXXZ)
urlReader.obj : error LNK2019: unresolved external symbol "public:
__thiscall cURLpp::UnsetOption::UnsetOption(char const *)"
(??0UnsetOption_at_cURLpp@@QAE_at_PBD@Z) referenced in function "public:
virtual void __thiscall cURLpp::Option<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > >::updateMeToOption(class cURLpp::OptionBase
const &)" (?updateMeToOption@?$Option_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@cURLpp@@UAEXABVOptionBase_at_2@@Z)
urlReader.obj : error LNK2019: unresolved external symbol "public:
__thiscall cURLpp::UnsetOption::UnsetOption(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??0UnsetOption_at_cURLpp@@QAE_at_ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)
referenced in function "private: virtual void __thiscall
cURLpp::OptionTrait<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char>
>,10002>::updateHandleToMe(class cURLpp::CurlHandle *)const "
(?updateHandleToMe@?$OptionTrait_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@$0CHBC@@cURLpp@@EBEXPAVCurlHandle_at_2@@Z)
urlReader.obj : error LNK2019: unresolved external symbol "public:
__thiscall cURLpp::OptionBase::OptionBase(enum cURL::CURLoption)"
(??0OptionBase_at_cURLpp@@QAE_at_W4CURLoption@cURL@@@Z) referenced in
function "protected: __thiscall cURLpp::Option<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > >::Option<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > >(enum
cURL::CURLoption,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(??0?$Option_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@cURLpp@@IAE_at_W4CURLoption@cURL@@ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)
urlReader.obj : error LNK2019: unresolved external symbol "void
__cdecl cURLpp::libcurlRuntimeAssert(char const *,enum
cURL::CURLcode)"
(?libcurlRuntimeAssert_at_cURLpp@@YAXPBDW4CURLcode_at_cURL@@@Z) referenced
in function "public: void __thiscall cURLpp::CurlHandle::option<char
const *>(enum cURL::CURLoption,char const *)"
(??$option_at_PBD@CurlHandle_at_cURLpp@@QAEXW4CURLoption_at_cURL@@PBD_at_Z)
Debug/test_project.dll : fatal error LNK1120: 15 unresolved externals

---
That's QUITE a mess.
All I'm doing is
cURLpp::initialize();
cURLpp::Easy curl_handle;
curl_handle.setOpt(cURLpp::Options::Url("http://www.example.com/"));
I haven't gone beyond there yet. I've clearly screwed something up
with the linking because even with the first line, I get
Linking...
Creating library Debug/test_project.lib and object Debug/test_project.exp
urlReader.obj : error LNK2019: unresolved external symbol "void
__cdecl cURLpp::initialize(long)" (?initialize_at_cURLpp@@YAXJ_at_Z)
referenced in function "private: int __thiscall
urlReader::saveData(void)" (?saveData_at_urlReader@@AAEHXZ)
Debug/test_project.dll : fatal error LNK1120: 1 unresolved externals
--
Can anybody shed some light? I'm a little new to C++, so don't assume
I know something that "everybody knows." ;)
I've tried with both version of curlpp.. I'm not sure which one to use
or what the difference is but I get crazy errors in both. So I think I
am missing something pretty basic...
If you could send your replies back to this address, that'd be great!
Thanks!
Matt
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-04-18

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET