
5 Mar
2007
5 Mar
'07
5:24 a.m.
Hi! I meet trouble in use serialization in dll in dll export a function like hi_dll() void hi_dll() { std::mapstd::string,int m_map; std::ostringstream os; boost::archive::text_oarchive oa(os); oa & m_map; std::cout << os.str() << std::endl; } and in exe there is a function hi_exe() code is the same as hi_dll void hi_exe() { std::mapstd::string,int m_map; std::ostringstream os; boost::archive::text_oarchive oa(os); oa & m_map; std::cout << os.str() << std::endl; } in Debug mode , the exe call both hi_exe() and hi_dll() will assert at extended_type_info.cpp line 71 assert(lookup(eti) == m_self->m_map.end()); vc7.1 boost 1.33.1 link with serialization as dll then what to do? thanks in advance. Best Regards mos