[boost] Problem with Serialization and Building with Managed Extensions
by Jared McIntyre other posts by this author
Sep 12 2005 10:47AM messages near this date
Re: [boost] [Review] xpressive - Doc comments
|
[boost] Boost regression notification (2005-09-12 [RC_1_33_0])
SOURCE I am trying to use boost::serialization in a managed code (CLR) project in Visual Stu
dio. The area that serialization
is being used, and all the objects that are being serialized, and standard C++. There are no
managed objects related
to the serialization process. In fact, I have a test app that reproduces the problem that c
an be built and run
without managed extensions on. But, if I turn building with managed extensions on, several p
arts of the of the
serialization templates turn up missing at link time. I get several errors like the followin
g:
LINK : error LNK2020: unresolved token (0A00013F) std._Uninitialized_fill_n<class boost::var
iant<class
TestClass,int,float,double,class std::basic_string<char,struct std::char_traits<char> ,class
std::allocator<char>
> ,struct boost::detail::variant::void_,struct boost::detail::variant::void_,struct
boost::detail::variant::void_,struct boost::detail::variant::void_,struct boost::detail::var
iant::void_,struct
boost::detail::variant::void_,struct boost::detail::variant::void_,struct boost::detail::var
iant::void_,struct
boost::detail::variant::void_,struct boos
LINK : error LNK2020: unresolved token (0A000158) std._Uninit_fill_n<class boost::variant<cl
ass
TestClass,int,float,double,class std::basic_string<char,struct std::char_traits<char> ,class
std::allocator<char>
> ,struct boost::detail::variant::void_,struct boost::detail::variant::void_,struct
boost::detail::variant::void_,struct boost::detail::variant::void_,struct boost::detail::var
iant::void_,struct
boost::detail::variant::void_,struct boost::detail::variant::void_,struct boost::detail::var
iant::void_,struct
boost::detail::variant::void_,struct boost::deta
Also, during build, the compiler doesn't like the use of __fastcall in several areas of the
code. For example:
..\..\..\..\boost\boost_1_33_0\boost\type_traits\detail\is_mem_fun_pointer_tester.hpp(2443)
: warning C4561:
'__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
I don't know if these are related.
I'm using VS 7.1. Does anyone have any thoughts on what I should look at from here?
Thanks,
Jared McIntyre
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
|