I have both static and dynamic versions of the same library installed on my Linux system:
/usr/lib/libsample.a /usr/lib/libsample.so
Which of these libraries will gcc use if I specify the -sample argument?
gcc xxx.c -lsample
How to force gcc to use the static or dynamic version of the library
c ++ c gcc linux linker
Sandro
source share