[jamming] [REPOST] Using Jam to link executables with correct library in multiple directories

Alex Buell alex.buell at munted.org.uk
Tue Aug 22 06:31:13 PDT 2006


On Tue, 22 Aug 2006 14:12:51 +0200, I waved a wand and this message
magically appears in front of Kai Backman:

> On 8/22/06, Alex Buell <alex.buell at munted.org.uk> wrote:
> > correct libraries, but if I run Jam in base directory, it tries to
> > link both sets of executables with -lboost_signals (instead of only
> > linking with boost_filesystem in filesystem/ and boost_signals in
> > signals/).
> 
> Short answer, you probably want to do this instead of setting
> LINKFLAGS: <jam>
> for t in $(PROGRAMS)
> {
>        LinkLibraries : $(LIB_SIG) ;
>        Main $(t) : $(t).cpp ;
> }
> </jam>

I've made the change to the above (added LinkLibraries) but it still
doesn't work correctly; still get linkage errors as if it's not linking
with the required libraries.

Any more ideas? 
-- 
http://www.munted.org.uk

Bien sur mes talons sont toxiques. N'avez vous pas vu ma boite?


More information about the jamming mailing list