Has anyone used Boost.build 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:

 

http://thread.gmane.org/gmane.comp.lib.boost.build/12134

 

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

 

Thanks,

 

Chris



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.