Problem with Serialization and Building with Managed Extensions

I am trying to use boost::serialization in a managed code (CLR) project in Visual Studio. 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 can be built and run without managed extensions on. But, if I turn building with managed extensions on, several parts of the of the serialization templates turn up missing at link time. I get several errors like the following: LINK : error LNK2020: unresolved token (0A00013F) std._Uninitialized_fill_n<class boost::variant<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::variant::void_,struct boost::detail::variant::void_,struct boost::detail::variant::void_,struct boost::detail::variant::void_,struct boost::detail::variant::void_,struct boos LINK : error LNK2020: unresolved token (0A000158) std._Uninit_fill_n<class boost::variant<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::variant::void_,struct boost::detail::variant::void_,struct boost::detail::variant::void_,struct boost::detail::variant::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
participants (1)
-
Jared McIntyre