
2009/6/10 Steven Watanabe
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
and , I think.
You are absolutely right. Thanks!
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users