[jamming] Multiple directories question

Joshua ChaitinPollak jpollak at kivasystems.com
Thu Mar 1 12:41:45 PST 2007


I'm sure this is a FAQ, but I can't seem to find an answer... I have  
a project with static libraries and executables, and I'm having  
trouble having the executables build the libraries.

Specifically, I have a directory myProj, which contains:

Jambase
Jamfile
myLib/
myExec/

Inside myLib, there is myLib.cpp and Jamfile, which contains:

SubDir TOP myLib ;

Library myLib : myLib.cpp ;

Inside myExec, there is main.cpp and Jamfile, which contains:

SubDir TOP myExec ;

Main myExec : main.cpp ;
LinkLibraries myExec : myLib ;


When I do the following, I get an error:

cd myExec
jam

don't know how to make myLib.a
<snip>
...skipped myExec for lack of myLib.a...


How do I tell myExec where to find myLib.a, and better yet, how to  
rebuild it if needed?

Thanks,

Josh

-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems



More information about the jamming mailing list