Boost logo

Boost-Build :

Subject: [Boost-build] Partial linking
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2012-01-23 13:28:48

Has anyone used to do partial linking? I am trying to do this:

obj O : [ glob *.c ] ;

to create a partially linked object that can then be used later like this:

exe E : main.cpp O ;

But it appears that each input produces a matching output for the obj rule because I get a duplicate name of actual target for O.obj

There are many reasons to do this but my immediate application is in an embedded environment where it is especially useful to link groups of code at particular memory locations which I don't think can be accomplished using static libs (i.e. archives).

The compile.c action (for gcc for example) seems to suggest that multiple sources and targets can be used but I don't understand how:

rule compile.c ( targets * : sources * : properties * )

The closest relevant article I could find on this in the mailing list is this:

But no answer was provided. The suggestion in the same article for using multiple source inputs to the compiler seems relevant maybe?



This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at