
10 Jun
2009
10 Jun
'09
7:56 p.m.
AMDG Mathieu Larose wrote:
I realized that if I uncomment these lines in main.cpp:
#include
BOOST_CLASS_EXPORT(B); My code runs correctly.
It seems that BOOST_CLASS_EXPORT needs to be in the same .cpp file (i.e main.cpp) where MPI is used. When using serialization only, BOOST_CLASS_EXPORT could be in any .cpp files.
Is this normal?
Also, if A is no more an abstract class, BOOST_CLASS_EXPORT(B); could be called from other.cpp and the code runs correctly.
I'm using version 1.39.0.
You need to #include all the appropriate archive headers before
using BOOST_CLASS_EXPORT. In this case you need