Cannot compile boost mpi example
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.m... I am running linux 64 bits, gcc 3.4. Thanks in advance, Hernan
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.i... -- Noel
Hi,
Thanks for the response. This is a little bit confusing to me. According to:
http://www.boost.org/doc/libs/1_43_0/more/getting_started/unix-variants.html
I do not need to build BOOST.MPI. I thought Boost.MPI was a header only library.
Thanks,
Hernan
On Sat, May 29, 2010 at 5:37 AM, Belcourt, Kenneth
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.i...
-- Noel
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On 29/05/2010 08:02, Hernan Grecco wrote:
Hi,
Thanks for the response. This is a little bit confusing to me. According to:
http://www.boost.org/doc/libs/1_43_0/more/getting_started/unix-variants.html
I do not need to build BOOST.MPI. I thought Boost.MPI was a header only library.
Erm, yeah, no. MPI need to be built and is one of those that need to be explicitly asked for to be built as well. Have a look at the individual library docs. http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.i... KTC
AMDG Hernan Grecco wrote:
Thanks for the response. This is a little bit confusing to me. According to:
http://www.boost.org/doc/libs/1_43_0/more/getting_started/unix-variants.html
I do not need to build BOOST.MPI. I thought Boost.MPI was a header only library.
It isn't the page is a little out of date. C:\boost\trunk>bjam --show-libraries The following libraries require building: - date_time - filesystem - graph - graph_parallel - iostreams - math - mpi - program_options - python - random - regex - serialization - signals - system - test - thread - wave In Christ, Steven Watanabe
participants (4)
-
Belcourt, Kenneth
-
Hernan Grecco
-
KTC
-
Steven Watanabe