Boost Users :
Subject: Re: [Boost-users] order of headers with Boost.Serialization and Boost.MPI
From: Matthias Troyer (troyer_at_[hidden])
Date: 2010-10-24 09:38:52
On Oct 23, 2010, at 12:34 AM, Riccardo Murri wrote:
> I'm writing a code that uses Boost.MPI to send some GMP
> (http://gmplib.org/) datatypes around.
> Since I do not want to change GMP, I'm using the "non-intrusive"
> serialization support (code in attached
> file "gmpxx_boost_serialization.hpp"). However, I'm running into a
> strange include-order mess:
> * If I include first my "gmpxx_boost_serialization.hpp" and _then_
> "boost/mpi.h", then I get a slew of errors (attached file
> * If I reverse the include order, and include "boost/mpi.h" _first_,
> then everything compiles fine.
> Is this to be expected, or am I doing something wrong in my code?
> For the record, I'm compiling on Ubuntu 10.10, gcc 4.4.5, arch. amd64.
> Thanks for any hint!
> Best regards,
> Riccardo Murri
Unfortunately your example is not self-contained and I thus cannot reproduce the problem
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net