|
Boost Users : |
Subject: [Boost-users] Cannot compile boost mpi example
From: Hernan Grecco (hernan.grecco_at_[hidden])
Date: 2010-05-28 15:16:35
I have downloaded boost 1.43 and run many of the examples without a
problem. However, I am not able to compile any of the parallel graph
examples. I traced the problem to using boost MPI. For example when I
compile the first example in:
http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/tutorial.html
I get:
/tmp/ccwOi38z.o(.text+0x132): In function `main':
: undefined reference to `boost::mpi::environment::environment(int&,
char**&, bool)'
/tmp/ccwOi38z.o(.text+0x13b): In function `main':
: undefined reference to `boost::mpi::communicator::communicator()'
/tmp/ccwOi38z.o(.text+0x144): In function `main':
: undefined reference to `boost::mpi::communicator::size() const'
/tmp/ccwOi38z.o(.text+0x150): In function `main':
: undefined reference to `boost::mpi::communicator::rank() const'
/tmp/ccwOi38z.o(.text+0x1b1): In function `main':
: undefined reference to `boost::mpi::environment::~environment()'
/tmp/ccwOi38z.o(.text+0x1e2): In function `main':
: undefined reference to `boost::mpi::environment::~environment()'
MPI works fine as I have tested with the example in:
http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.mpi_impl
I am running linux 64 bits, gcc 3.4.
Thanks in advance,
Hernan
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