[LCP] static vs dynamic linking using gcc in Linux?

Zachary Uram netrek at gmail.com
Sun Jun 21 13:06:11 EST 2009


Hi,

Assume my program foo.c depends on $HOME/mylib/libbar.a and I wish to

1) statically include libbar.a in my binary
2) dynamically reference libbar in my binary

What gcc code will let me do each method?

Zach



More information about the linuxCprogramming mailing list