Hello,

 

I am trying to link an EXE against some DLLs (.libs) and when I do so, the exe rules is also trying to link against the static libs that the dlls depend on.  Here is what I am doing:

 

lib A : file1.c : <link>static ;

lib B : file2.c A : <link>static ;

lib dll : file3.c B : <link>shared ;

 

exe test : main.c dll ;

 

when test links, it includes dll.lib (this is good) and A.lib (which is not what I expected??) but not B.lib (which is what I expected).  What am I doing wrong? I tried to use <library> without success.  What is the proper way of linking against a dll without inheriting its dependant libs?

 

I am using the msvc toolset and Boost.Build 2011.04-svn

 

Thanks,

 

Chris



This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.