|
Boost-Build : |
From: Phillip Seaver (phil_at_[hidden])
Date: 2006-08-29 13:58:12
I've got a setup like this, where the executable needs the usage
requirements (includes, defines) of a DLL, but doesn't want to link
against it.
lib a : a/a.cpp : <link>static : : <include>a ;
lib b : b/b.cpp a : <link>static : : <include>b ;
lib c : c/c.cpp b : <link>shared : : <include>c ;
exe d : d.cpp : <use>c <link>static ;
The "<use>c" accomplishes this, except that it causes the executable to
also link against a.lib, which I didn't expect and causes link errors
with my particular libraries. c.dll links with a.lib and b.lib, as I
expected, and d.exe does not link against c
Is this a bug? Are my expectations invalid? :-) The real code is used
on Windows, but this test case does the same thing with OS X.
Thanks,
Phillip
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