Boost logo

Boost Users :

From: Delfin Rojas (drojas_at_[hidden])
Date: 2004-11-09 21:55:23


Hello boost,

I started using the new serialization library. I use it to serialize a class
which contains, among other things, a std::set<std::basic_string<wchar_t> >

The project compiles just fine with many warnings because RTTI is not turned
on but it compiles. However it does not link. I get this error:

   Creating library Debug/MyAX.lib and object Debug/MyAX.exp
Config.obj : error LNK2019: unresolved external symbol "void __cdecl
boost::serialization::load<class boost::archive::xml_iarchive,class
std::set<class std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> >,struct
std::less<class std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> > >,class
std::allocator<class std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> > > > >(class
boost::archive::xml_iarchive &,class std::set<class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >,struct std::less<class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > >,class std::allocator<class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > > > &,unsigned int)"
(??$load_at_Vxml_iarchive_at_archive@boost@@V?$set_at_V?$basic_string@_WU?$char_trait
s@_W_at_std@@V?$allocator@_W_at_2@@std@@U?$less_at_V?$basic_string@_WU?$char_traits@_
W_at_std@@V?$allocator@_W_at_2@@std@@@2_at_V?$allocator_at_V?$basic_string@_WU?$char_tra
its@_W_at_std@@V?$allocator@_W_at_2@@std@@@2@@std@@@serialization_at_boost@@YAXAAVxml
_iarchive_at_archive@1_at_AAV?$set_at_V?$basic_string@_WU?$char_traits@_W_at_std@@V?$all
ocator@_W_at_2@@std@@U?$less_at_V?$basic_string@_WU?$char_traits@_W_at_std@@V?$alloca
tor@_W_at_2@@std@@@2_at_V?$allocator_at_V?$basic_string@_WU?$char_traits@_W_at_std@@V?$a
llocator@_W_at_2@@std@@@2@@std@@I_at_Z) referenced in function "public: static
void __cdecl boost::serialization::free_loader<class
boost::archive::xml_iarchive,class std::set<class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >,struct std::less<class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > >,class std::allocator<class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > > > >::invoke(class boost::archive::xml_iarchive
&,class std::set<class std::basic_string<wchar_t,struct
std::char_traits<wchar_
t>,class std::allocator<wchar_t> >,struct std::less<class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > >,class std::allocator<class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > > > &,unsigned int)"
(?invoke@?$free_loader_at_Vxml_iarchive_at_archive@boost@@V?$set_at_V?$basic_string@_
WU?$char_traits@_W_at_std@@V?$allocator@_W_at_2@@std@@U?$less_at_V?$basic_string@_WU?
$char_traits@_W_at_std@@V?$allocator@_W_at_2@@std@@@2_at_V?$allocator_at_V?$basic_string
@_WU?$char_traits@_W_at_std@@V?$allocator@_W_at_2@@std@@@2@@std@@@serialization_at_bo
ost@@SAXAAVxml_iarchive_at_archive@3_at_AAV?$set_at_V?$basic_string@_WU?$char_traits@
_W_at_std@@V?$allocator@_W_at_2@@std@@U?$less_at_V?$basic_string@_WU?$char_traits@_W@
std@@V?$allocator@_W_at_2@@std@@@2_at_V?$allocator_at_V?$basic_string@_WU?$char_trait
s@_W_at_std@@V?$allocator@_W_at_2@@std@@@2@@std@@I_at_Z)

Sorry for the length of the error. Anyway, I am using VC++ 7.1. I don't know
if it matters but my project has the "Treat wchar_t as built in type" option
turned on.

Any idea what am I doing wrong? Thanks,

-delfin

> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Beman Dawes
> Sent: Tuesday, November 09, 2004 6:03 PM
> To: boost-users_at_[hidden]; boost_at_[hidden]; boost-
> users_at_[hidden]
> Subject: Re: [boost][boost-users][random] Open bugs
>
> At 02:00 PM 11/8/2004, Cromwell Enage wrote:
> >Any chance that any of the following bug reports will
> >be resolved before the release?
> >
>
> ><http://sourceforge.net/tracker/index.php?func=detail&aid=911758&group_id
> =75>86&atid=107586>
>
> ><http://sourceforge.net/tracker/index.php?func=detail&aid=715667&group_id
> =75>86&atid=107586>
>
> ><http://sourceforge.net/tracker/index.php?func=detail&aid=652567&group_id
> =75>86&atid=107586>
> >
> > TIA!
> > Cromwell Enage
>
> Jens has now cleared all of these.
>
> --Beman
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net