Subject: Re: [Boost-build] Building Boost 1.44 with mpi enabled
From: Jurko GospodnetiÄ (jurko.gospodnetic_at_[hidden])
Date: 2012-07-26 09:30:15
> When I build it looks like every OpenMPI symbol is unresolved:
> Creating library
> and object
> text_skeleton_oarchive.obj : error LNK2001: unresolved external symbol
> timer.obj : error LNK2001: unresolved external symbol MPI_Error_class
> I'm sure I'm just missing something simple, but I'm kinda new to this
> and can't figure out what. Any help would be appreciated.
First, since this problem seems to be Boost library build and not not
really Boost Build build system related - you might get a better answer
by asking on the Boost library user group/mailing-list.
Never used MPI myself or tried compiling Boost with it so I can not
help directly from experience but here is what I would do it this
happened to me:
* Run the build with the -d+2 option.
* See the exact command line used when attempting to link one of the
* See which module actually implements one of the symbols reported as
* See whether this module has been listed in the command-line. If yes
- then some define is missing and relative part of the code has been
#ifdef-ed out or something similar; and if not - check whether the
module is listed in the problematic library's build script.
Steps from here diverge based on what was discovered up to now but
basically - try to detect whether the problem is due to a missing
setting in the build scripts or whether the Build system is doing
something wrong. Most likely the problem is in the build scripts and in
the process of researching this you'll find out some configuration
setting in your environment is wrong or missing...
Hope this helps.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk