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
filesystem.

OK here I go:
I compiled Boost using
./bootstrap.sh --prefix=myhomedir/boost
--with-libraries=serialization,mpi,program_options,filesystem
and
./bjam install link=shared

In my homedir I have a file called user-config.jam with the following
content:
using mpi : :
mpi
/opt/scali/lib64
/opt/scali/include
;

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
http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/tutorial.html

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
-lmpi

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

Any help is appreciated

--
View this message in context: http://boost.2283326.n4.nabble.com/Compiling-a-program-using-Boost-MPI-v-1-43-with-Scali-MPI-3-5-0-tp3444686p3444686.html
Sent from the Boost - Build mailing list archive at Nabble.com.

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