Boost logo

Boost Users :

Subject: Re: [Boost-users] Cannot compile boost mpi example
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2010-05-28 23:37:08


On May 28, 2010, at 1:16 PM, Hernan Grecco wrote:

> 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)'

I'd guess you're not linking against the Boost.MPI library. Are you
sure you've built the library and are you linking against it?

http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.installation

-- Noel


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