Re: [Boost-users] [Serialization] Linker Errors Using Unicode(Was:error C2027: useofundefinedtype'boost::serialization::extended_type_info_null<T>'?)

Ok. Well, I tried testarray.cpp (which contains the
test_array_text_warchive test) and it doesn't build in VC7.1, with the
following linker errors, if I turn on the unicode option. I simply made
a new project and turned on unicode, and added the file. I don't see
why that should have any issues. I have yet to try with 1.34, but I
can't see a logical reason why unicode doesn't work, but non-unicode
does.
I'll get back with the result of 1.34, but again, 1.33.1 does not link
for me.
The results are as follows:
------ Build started: Project: test_array_text_archive, Configuration:
Debug Win32 ------
Linking...
Creating library Debug/test_array_text_archive.lib and object
Debug/test_array_text_archive.exp
testarray.obj : error LNK2019: unresolved external symbol "void __cdecl
boost::test_tools::tt_detail::check_impl(class
boost::test_tools::predicate_result const &,class
boost::basic_wrap_stringstream<char> &,class
boost::unit_test::basic_cstring<char const >,unsigned int,enum
boost::test_tools::tt_detail::tool_level,enum
boost::test_tools::tt_detail::check_type,unsigned int,...)"
(?check_impl@tt_detail@test_tools@boost@@YAXABVpredicate_result@23@AAV?$
basic_wrap_stringstream@D@3@V?$basic_cstring@$$CBD@unit_test@3@IW4tool_l
evel@123@W4check_type@123@IZZ) referenced in function "int __cdecl
test_array<class A>(class A)" (??$test_array@VA@@@@YAHVA@@@Z)
testarray.obj : error LNK2019: unresolved external symbol "public: void
__thiscall boost::archive::text_oarchive_impl<class
boost::archive::text_oarchive>::save(class std::basic_string
Okay, that's fair and fine. However, any explanation for the linker errors that seem to occur only with unicode versions?
Can anyone else try out the demo.cpp example (http://www.boost.org/libs/serialization/example/demo.cpp) with a unicode build, and just change the boost::archive::text_oarchive and boost::archive::text_iarchive to use boost::archive::text_woarchive and boost::archive::text_wiarchive, as well as using wide strings and wide streams? I want to see if anyone else has this issue with 1.33.1?
Any chance this might be fixed in 1.34.0?
Thanks,
Lawrence
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: Thursday, November 30, 2006 11:47 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [Serialization] error C2027: use of undefinedtype'boost::serialization::extended_type_info_null<T>'?
Note that the library is in two parts. libboost_serialization.. contains code used for all types of archives while libboost_wserialization contains code used only for wide character archives. So applications using wide character archives should link against BOTH libraries.
Robert Ramey
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (1)
-
Lawrence Spector