Boost logo

Boost-Build :

Subject: [Boost-build] Compiling a program using Boost.MPI (v.1.43) with Scali MPI 3.5.0
From: buclit (surfersparadise85-sonstiges_at_[hidden])
Date: 2011-04-12 09:55:05

Hello everyone,

I need some support to get a simple hello-world programm compiled with
Boost.MPI using Scali MPI. I am working on a Linux-Cluster with SLES and
since the installed software can't be altered I have to maintain boost
myself. On the cluster gcc 3.3.3 is installed.
I am using boost 1.43 because with any newer release had problem compiling

OK here I go:
I compiled Boost using
./ --prefix=myhomedir/boost
./bjam install link=shared

In my homedir I have a file called user-config.jam with the following
using mpi : :

It compiled and linked the *.so without complaining and copied the libraries
and includestuff in myhomedir/boost

Then I tried to compile the simple "Hello World" example from

with the following command:
/opt/scali/bin/mpic++ main.cpp -Imyhomedir/boost/include/
-Lmyhomedir/boost/lib -lboost_serialization -lboost_mpi

which means:
g++ main.cpp -Imyhomedir/boost/include/ -Lmyhomedir/boost/lib
-lboost_serialization -lboost_mpi -I/opt/scali/include -L/opt/scali/lib64

that came up with the following error message:
myhomedir/boost/lib/ undefined reference to `MPI_Finalized'
collect2: ld returned 1 exit status

Any help is appreciated

View this message in context:
Sent from the Boost - Build mailing list archive at

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at