Linking multiple libraries

A Guy With a Question aguywithaquestion at gmail.com
Sat Nov 25 22:18:52 UTC 2017


Hi,

So I got this working, I would just like to see if I have done 
this correctly or if it's just working out of a fluke. I am using 
Visual D. Lets say I have four projects:

Library 1: Common Library
Library 2: Base Service Library - Dependent on the Common Library.
Library 3: More Specified Service Library - Dependent on the base 
service library.
Final Exe - Dependent on Library 3.

^^^

That's how I set up the linking in Visual D. Everything builds. 
But should the final exe try to link against all 3 libraries, 
library 3 link to library 1 & 2 and library 2 link to library 1 
(also builds)? Or is the single dependence chain I created work 
without quirks?

Is there a functional difference at the end of the day?


More information about the Digitalmars-d-learn mailing list