Messages in this thread | | | Date | Thu, 16 Jul 1998 11:30:44 +0200 | From | Kurt Garloff <> | Subject | Re: DLLs ... [OFFTOPIC] |
| |
On Thu, Jul 16, 1998 at 12:29:09PM +0530, Somnath Roy wrote: > Is there any guideline for writing DLLs in Linux ?
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
| |