Boost logo

Boost-Build :

From: Zbynek Winkler (zwin_at_[hidden])
Date: 2004-01-26 07:21:00


Vladimir Prus wrote:
>>>>When I make library foo depend on library bar I get a warning
>>>>
>>>>targets.jam:1014: in check-for-unused-sources from module...
>>>>warning: Unused source.... bar.cpp in main target ./foo...
>>>>
>>>>Why is that? Am I doing something wrong? The jamfile is plain simple
>>>>
>>>>lib foo : foo.cpp bar ;
>>>>lib bar : bar.cpp ;
>>>
>>>That's no what I'm getting.
>>
>>Ok, I forgot something. Try 'bjam link=static'
>
>
> I still get a warning about unused library, not 'bar.cpp'. Anyway, I've
> comitted a change which eliminates that warning. Maybe, you can try the
> attached patch?

The patch works for me (no warning). The confusion about the warning probably
arose because of the following line:

warning: Unused source { msvc%msvc.archive-bar.STATIC_LIB {
msvc%msvc.compile.c++-bar.OBJ { bar.CPP } } } in main target ./foo

I saw "Unused source" and scanned the rest for some "source" that could be
"unused" while it was not refrering to "source file" but to a source in general.

Zbynek

-- 
http://zw.matfyz.cz/ http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic
 

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