This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How handle static libraries?
- From: "Bo Do" <bodo at flygp dot se>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 17 Nov 2003 10:17:41 +0100
- Subject: How handle static libraries?
Hey all,
I've written some (static) libraries I use pretty often. Lets call them A, B, C.....
When I want to use one, lets say B, I simply include B.h and link in B in my program.
My question is, I have a library C which needs/uses library A. Can I compile/archive
C in some way so that when I want to use C in a program, I just include C.h and link in C?
What I have to do now is to also link A to my program. But this look wierd (to me!)
because my program doesn't use A.
Thanks for any tip,
/Bo