Re: Compiling on OS/2

From: Paul Floyd (paulf@free.fr)
Date: Thu May 31 2001 - 00:52:38 PDT

  • Next message: Charles Briscoe-Smith: "Is my Artec AT12 broken?"

    Quoting Mick Barry <mick@objects.com.au>:

    >
    >
    > Franz Bakan wrote:
    >
    > >
    > > I did not get a dll because I don't know how to manage this
    > > I am only an amateur programmer ;-)
    > >
    >
    > On a side note, does OS/2 support shared libraries.
    > And if it does, what mechanism does it use?

    Of course. The mechanism is very much like that of Windows (or indeed, the
    Windows mechanism is very much like OS/2).

    The idea is to basically compile and link to a DLL (dynamic link library). This
    contains some initialization code and all the functions you want. When you
    compile, you also generate a small static library of stub functions which
    forward function calls to the DLL. The DLL can either be loaded automatically
    (e.g., when you call one of the functions in it) or explicitly through function
    calls like DosLoadModule (an OS/2 API).

    I don't know gcc/configure well enough to say how it is done in that
    environment, since I'm more familiar with the IBM C/C++ compilers.

    A bientot
    Paul

    -- 
    Paul Floyd   http://paulf.free.fr for those with time to waste
    What's the point? The sharp thing on the end.
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Thu May 31 2001 - 00:54:35 PDT