Things to try: a) does it work with non-polymorphic archives of the same type: binary? etc. That is, can you check to see if its an issue with "polymophic-ness" or not. b) try serializtion to xml_oarchive and save the output. check to see that you can read it. Then try polymorphic_xml_oarchive and compare the two. Robert Ramey Sohail Somani wrote:
Hi,
I am serializing/deserializing a polymorphic class and I am having the above issue upon deserialization where it fails on gcc and works in msvc. The serializer and deserializer are implemented in two different executables. Should that be an issue? All the object files *except* the serialize/deserialize/main functions are the same in both executables.
In the gcc case, its comparing new_cid=2 against cid=1 (if that helps at all!)
TIA,
Sohail