Search code examples
c++serializationboostcompatibility32bit-64bit

How to use boost::serialization between x86 and x64 platforms


I have a program that runs as 64 bit application under Windows. I want the same program to work as 32 bit application. It compiles, links and runs, but I cannot read the files which I stored with the 64 bit application in the 32 bit application. I use boost::serialization with binary archives for writing and reading from files.

The software has already been released to a client. The client should be able to read the files that have been stored by the 64 bit application with the 32 bit application. Is this possible? How? Any expenriences?


Solution

  • you could write a 64 bit application that converts binary archives to xml archives. these you could probably read with a 32 bit application and convert to a format of your choice.