« first day  last day (15 days later) » 

8:25 AM
Does it mean that if we apply ldd to a program then ldd reports a list of libraries that is enough to resolve all the undefined references inside the program?
 
 
7 hours later…
3:42 PM
The question is, whether a shared library can be compiled with an "extern" reference to some function (foo2())., i.e. a function that does not have an implementation in any linked library. If yes, then the compiled exe (program with main()) will have to provide an implementation of foo2() if it wishes to link to the shared library that declared an extern function foo2.
So i presume, if you call ldd on that shared library, it will NOT know how to resolve foo2, so it will not provide a library name in dt_needed that could resolve foo2
If the case of that "a shared library can be compiled with extern function without implementation" is true, somehwere down the chain of main exe, you will have to provide the implementation of foo2, or you won't be able to compile it into a final binary.
And, as far as i know, the first condition is valid only for linux shared libraries, on windows, a shared library can't call an extern function in the main exe. Anyways that's what i read
 

« first day  last day (15 days later) »