Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-06 04:42:08


Hi Toon,

> convert objects obj : foo.cpp : <parallelism>header ;
> lib libfoo_mp : objects : <parallelism>mpi ;
> exe test_mp : main.cpp libfoo_mp ;
>
> Thus here the exe is linked to libfoo which is linked to mpi. Thus the
> link-line for the exe should contain foo and the mpi library. However it
> only contains foo and thus the calls to MPI are not resolved. Thus the
> link-line looks like
>
> g++ -o bin/gcc/debug/link-static/test_mp
> bin/gcc/debug/link-static/main.o
> bin/gcc/debug/link-static/parllelism-mpi/libfoo_mp.a -g

Thanks for explaining. A bugfix and a testcase were just committed. Please let
me know if it works for you.

- Volodya

 


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