|
Dear List:
I have 2 sub-libraries(image.c ,gif.c )
used by a libraries generic.c
How could I link them as a static library libgeneric.a
,
Could someone shed some light?
gcc -c image.c -o image.o
ar rcs libimage.a image.o
gcc -c gif.c -o gif.o
ar rcs libgif.a gif.o
gcc -c generic.c -o generic.o -L. -limage
-lgif <- it seems that I do wrong on this
line ar rcs libgeneric.a generic.o
BestRegards'
Henry
|
- [SLUG] Re: ask gcc (compling,linking) henry
- [SLUG] Re: ask gcc (compling,linking) Angus Lees
- Re: [SLUG] ask gcc (compling,linking) Matthew Dalton
