\begin{henry}
> 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
libraries are pulled in during linking, not during compiling.
"gcc -c" only compiles.
you want:
# compiling: .c -> .o
gcc -c generic.c -o generic.o
# linking: lots of .o and libraries (really just other .o) -> program
gcc -o myprogram myprogram.o other_objects.o -limage -lgif
--
- Gus
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug