What you want to use are shared libraries in Un*x/Linux land, probably,
like /lib/libc.so ... (so = shared object)
gcc -fPIC -O2 -c file1.c
gcc -fPIC -O2 -c file2.c
...
gcc -shared -Wl,-soname,libXY.so.1 -o libXY.so.1.0 file1.o file2.o ...
ln -s libXY.so.1.0 libXY.so.1
ln -s libXY.so.1 libXY.so
Linking to library:
gcc -o executable -L/path/to/lib -lXY exec1.o exec2.o ...
-- Kurt Garloff, Dortmund <K.Garloff@ping.de> PGP key on http://student.physik.uni-dortmund.de/homepages/garloff- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html