Reputation: 43
I have some Questions on linking libraries.
How does the Linker decide, if a library I want to link is linked static or dynamic? Is it decided by the file extention (.a/.so)?
Is it possible, to dynamically link a .a library?
Is it possible to convert a .a library into a .so library without having the sources?
Upvotes: 1
Views: 595
Reputation: 813
The gcc linker will link dynamically to .so files by default, if both types of library are found in its search path. You can over-ride this with command line arguments, as described here.
Upvotes: 0
Reputation: 9354
Upvotes: 1