gcc linker finding both .so and .a in the library path which is chosen?

Posted by ojblass on Stack Overflow See other posts from Stack Overflow or by ojblass
Published on 2010-03-30T14:19:00Z Indexed on 2010/03/30 14:23 UTC
Read the original article Hit count: 339

Filed under:
|

If I run

gcc -c a.c -L /usr/lib -lexpat 

and both libexpat.a and libexpat.so are in /usr lib which one is used by the linker?

© Stack Overflow or respective owner

Related posts about linker

Related posts about gcc