GCC -l

Posted zjbfvfv

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GCC -l相关的知识,希望对你有一定的参考价值。

GCC   -l  option is to link the library. It can use for static and share link.  Link -l with library name without the lib prefix and the .a or .so extensions.

Static : gcc   -static -ltest xx.c, it will link with libtest.a

share : gcc –ltest xx.c it will link with libtest.so

以上是关于GCC -l的主要内容,如果未能解决你的问题,请参考以下文章