Opened 6 years ago

Last modified 5 years ago

#12781 new Bugs

Boost.MPI header <boost/mpi.hpp> cannot be included in project headers

Reported by: ryan.krattiger@… Owned by: Matthias Troyer
Milestone: To Be Determined Component: mpi
Version: Boost 1.61.0 Severity: Not Applicable
Keywords: Cc:

Description

When including the Boost.MPI header <boost/mpi.hpp> inside of a project specific header file multiple definitions of macros from other supporting boost libraries. (output attached)

There seems to be some header guards missing but I have not really looked in to the error beyond fixing it by not including the <boost/mpi.hpp> header outside of compiled project files.

When using OS CentOS 6.5 this error does not exist so a newer OS is required to reproduce the error. I have reproduced the error on CentOS 7, Ubuntu 16.04.1-LTS, and Fedora 25.

Attachments (1)

error_output.log (13.5 KB ) - added by ryan.krattiger@… 6 years ago.
Error output from failed build

Download all attachments as: .zip

Change History (2)

by ryan.krattiger@…, 6 years ago

Attachment: error_output.log added

Error output from failed build

comment:1 by anonymous, 5 years ago

Severity: ProblemNot Applicable

Update. Upgrading the compiler used to build boost fixed this issue. Feel free to close it as issue as it seems to be unrelated to the implementation.

Note: See TracTickets for help on using tickets.