1

Seems there's both libc.a and libc.so, right?

(1) If both exists, which does '-l' prefer?

(2) How do I specify I prefer the .so version against .a version, any gcc/g++ command line option to do this?

Community
  • 1
  • 1
Hind Forsum
  • 9,717
  • 13
  • 63
  • 119
  • Refer its first answer.. http://stackoverflow.com/questions/809794/use-both-static-and-dynamically-linked-libraries-in-gcc – jjm Sep 22 '16 at 11:29
  • I found in my ubuntu 1604, there're both : ./usr/lib32/libc.a and ./usr/lib32/libc.so. Then which one is used, "a" or "so"? – Hind Forsum Sep 23 '16 at 01:47

0 Answers0