lkml.org 
[lkml]   [1998]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 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

    \
     
     \ /
      Last update: 2005-03-22 13:43    [W:0.020 / U:0.212 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site