Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
GeneralRe: I'm OK but... PinmemberMycroft Holmes7-Jan-13 21:50 
GeneralRe: I'm OK but... PinmvpEspen Harlinn7-Jan-13 21:57 
GeneralRe: I'm OK but... PinmemberMycroft Holmes7-Jan-13 22:00 
GeneralA Quick Question on Linking. PinmemberJacob F. W.7-Jan-13 19:54 
This is going to get really confusing. Sorry in advanced.
I understand what static and dynamic Linking are, and how they works, but one point that confuses me is:
 
Does linking work in just one direction, or does it always work in both.
 
Let me clarify. If I write some code that uses the C Standard Library, we would of course say that I am linking to it. However, would you also say that the C Standard Library links to my code, even if it doesn't use anything I wrote?
 
One way
--------
Code X uses Code Y, therefore Code X links to Code Y.
Code Y does not use Code X, therefore Code Y does not link to Code X.

Two way
---------
Code X uses Code Y, therefore Code X links to Code Y.
Code Y does not use Code X, but Code X uses to Code Y, therefore Code Y links to Code X.
 

If Linking is Two Way, then is there a proper term for when one work uses another work. I think it would be something like "subroutine call", but I'm not sure how much that covers.
 
Again, sorry for any confusion. Thanks for your help.
Jacob W.
GeneralRe: A Quick Question on Linking. Pinmember_Maxxx_7-Jan-13 20:10 
GeneralRe: A Quick Question on Linking. PinmemberJacob F. W.7-Jan-13 20:38 
GeneralRe: A Quick Question on Linking. PinprotectorPete O'Hanlon7-Jan-13 21:00 
GeneralRe: A Quick Question on Linking. PinmemberSeattleC++9-Jan-13 5:30 
GeneralRe: A Quick Question on Linking. PinprotectorPete O'Hanlon9-Jan-13 5:40 
GeneralRe: A Quick Question on Linking. PinmemberSeattleC++9-Jan-13 7:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140826.1 | Last Updated 27 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid