are .so files related to static libraries?
are .so files related to static libraries?
No. .so files are libraries meant to be linked dynamically.
If you understand what you're doing, you're not learning anything.
ok , just learnt what are static and dynamic libs.. if i know the loc of a .so file. how do i link it in GCC?
let me elaborate...
i have a libacml.a file and a libacml.so file ,both in the same directory.
and at the prompt :
which one will it link and how do i specify which one to be linked.Code:gcc prog.c -L<actual path to this dir > -lacml
I believe it will choose dynamic linking when possible unless you give gcc the -static option
If you understand what you're doing, you're not learning anything.