domlao
domlao

Reputation: 16029

How to link a static library file in Linux machine

I have generated a static library for linux x86. How can I statically link this library in Linux?

Upvotes: 0

Views: 1545

Answers (2)

Fabrice Jammes
Fabrice Jammes

Reputation: 3205

Use :

gcc path_to_my_static_lib.a code.c

Upvotes: 1

anbu selvan
anbu selvan

Reputation: 745

This may be helpful http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

Just start with the basic and read thru the page you will get an idea.

Upvotes: 0

Related Questions