[英]How to link a static library file in Linux machine
I have generated a static library for linux x86. 我为linux x86生成了一个静态库。 How can I statically link this library in Linux?
如何在Linux中静态链接此库?
采用 :
gcc path_to_my_static_lib.a code.c
This may be helpful http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html 这可能会有所帮助http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html
Just start with the basic and read thru the page you will get an idea. 只需从基本开始,并通读页面,您将有一个想法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.