Boost logo

Boost-Build :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-12-07 04:37:05


Vladimir Prus wrote:
> 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.

After adapting 'convert.jam' it worked on my small testcase but it
did'nt work on my big project. So I slimmed down the project to soth.
almost similar to the small test-case and I can't find why it does not
work on the 'real-life' project. I've attached the project and in the
main directory is the output of 'bjam -d2' (in the file bjam_log.txt).
As you can see, the exe is not linked to the fake-mpi library ;-(

 


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