Hi,
Sorry I took I couple days to reply but I didn't want to waste your time if
I was just making some silly mistakes! I've managed to compile curlpp into a
.lib that is accepted by the compiler but I'm still getting a bunch of link
errors.
Right now, I have:
cURLpp::initialize;
cURLpp::CurlHandle request;
I am getting quite the mess of errors...
Linking...
msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::~basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)"
(??1?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_XZ)
already defined in curlpp.lib(Exception.obj)
msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??0?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_ABV01@@
Z) already defined in curlpp.lib(Exception.obj)
msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(char const *)"
(??0?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_PBD@Z)
already defined in curlpp.lib(Exception.obj)
msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: unsigned int __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::max_size(void)const "
(?max_size@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QBEI
XZ) already defined in curlpp.lib(Exception.obj)
msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::erase(unsigned
int,unsigned int)"
(?erase@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAEAAV1
2_at_II@Z) already defined in curlpp.lib(Exception.obj)
msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: unsigned int __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::size(void)const "
(?size@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QBEIXZ)
already defined in curlpp.lib(Exception.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
msvcrtd.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in
msvcrtd.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in
msvcrtd.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in
msvcrtd.lib(cinitexe.obj)
LIBCMT.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined
in msvcrtd.lib(MSVCR71D.dll)
msvcprtd.lib(MSVCP71D.dll) : warning LNK4006: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::~basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)"
(??1?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_XZ)
already defined in curlpp.lib(Exception.obj); second definition ignored
msvcprtd.lib(MSVCP71D.dll) : warning LNK4006: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??0?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_ABV01@@
Z) already defined in curlpp.lib(Exception.obj); second definition ignored
msvcprtd.lib(MSVCP71D.dll) : warning LNK4006: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(char const *)"
(??0?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_PBD@Z)
already defined in curlpp.lib(Exception.obj); second definition ignored
msvcprtd.lib(MSVCP71D.dll) : warning LNK4006: "public: unsigned int
__thiscall std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::max_size(void)const "
(?max_size@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QBEI
XZ) already defined in curlpp.lib(Exception.obj); second definition ignored
msvcprtd.lib(MSVCP71D.dll) : warning LNK4006: "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::erase(unsigned
int,unsigned int)"
(?erase@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAEAAV1
2_at_II@Z) already defined in curlpp.lib(Exception.obj); second definition
ignored
msvcprtd.lib(MSVCP71D.dll) : warning LNK4006: "public: unsigned int
__thiscall std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::size(void)const "
(?size@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QBEIXZ)
already defined in curlpp.lib(Exception.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in
msvcrtd.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in
msvcrtd.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in
msvcrtd.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in
msvcrtd.lib(cinitexe.obj); second definition ignored
LIBCMT.lib(winxfltr.obj) : warning LNK4006: ___CppXcptFilter already defined
in msvcrtd.lib(MSVCR71D.dll); second definition ignored
   Creating library Debug/test.lib and object Debug/test.exp
LINK : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
libs; use /NODEFAULTLIB:library
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main
referenced in function _mainCRTStartup
All I want to do really with curlpp is either get a text file for an URL or
open a stream from an URL (I don't think this is possible?).
I doubt this is a problem with curlpp. It is more like a problem with me...
if you have any suggestions, let me know!
Thanks,
Matt
-----Original Message-----
From: Jean-Philippe Barrette-LaPierre [mailto:jpb_at_rrette.com] 
Sent: April 19, 2005 4:12 PM
To: mattt_at_mattt.ca; curlpp_at_rrette.com
Subject: Re: A question about curlpp!
On April 19, 2005 04:08 pm, Matt Kirschnick wrote:
> Hi,
>
> I was wondering if the mailing list is still active.. I sent a message 
> there the other day but need moderator approval. I haven't got 
> anything back yet saying it was approved! If it isn't still active, 
> may I re-send the question to you directly? :)
>
Sorry, I was actually working on your problem when I received this message. 
First, you can get the .lib or the .dll of curlpp by changing the solution
configurations (should be on the toolbar). I think that the "Debug" 
configuration is the default. You can choose "Release" or "Release
(dynamic)" 
to get .lib or .dll, respectively.
Is it answering your question?
> Thanks,
>
> Matt
--
Jean-Philippe Barrette-LaPierre
Maintener of cURLpp (http://rrette.com/curlpp)
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-04-21