|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-08-29 07:24:46
On Saturday 27 August 2005 18:26, Malcolm Cifuentes wrote:
> I'm having trouble linking against a library in a sub category.
> I've no idea what I am doing wrong. I have trimmed the source
> code into a very trivial example, I can attach if the error is
> not obvious from below and some one is interested.
>
> My main exe(link_category/Jamfile) target is declared like:
> exe test_main : test_main.cpp /core/category//ttt ;
>
> upon executing bjam I receive this error message:
> error: Unable to find file or target named
> error: '/core/category//ttt'
> error: referred from project at
> error: '.'
>
> I get a similar error message if I use ../category//ttt also.
>
> The ttt lib(category/ttt/Jamfile) target is declared like:
> lib TTT : ttt.cpp ttt.h : <link>static ;
So, the target name is "TTT" and you're referrting to it as "ttt". Those are
different names!
> and the top level Jamfile which is parallel to link_category
> and category contains:
> project core
>
> : requirements <include>..
> : requirements <threading>multi
>
> ;
>
> If I move ttt to be parallel to category and change the exe
> target to reflect this then all is well.
>
> So can any one tell me where my mistake is?
Other than suggestion above, I can't say anything without you sending a
reproducible example.
- Volodya
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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