W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

Re: DLL export/import of defs for the Win32 platform

From: Raffaele Sena <raff@nuvomedia.com>
Date: Mon, 6 Sep 1999 10:35:15 -0700
Message-ID: <003f01bef88e$2eb7e240$303728ce@aromatic.com>
To: <www-lib@w3.org>, "Steinar Bang" <sb@metis.no>
> What about DLL export and imports for the Win32 platform?
> How are these handled?
> I assume that the
>         libwww/Library/src/windows/*.def
> files are related to this?  But how do I create a *.def file for my
> DLL which contains everything?  And how are the
> "__declspec(dllexport)" directives inserted into the .h files?

    The .def files are created from the .files files.

    For every DLL, the corresponding .files contains the list of sources
    for that library. winConfigure parses the .files and for each source
    file extracts the "global" symbols (I think it extracts the PUBLIC
    and add them to the .def file.

    So, you should create something like wwwall.files and put in it all the
    source (.c) files you are using.

    I didn't find any use of __declspec in the sources, but it could be (I
    I remember something similar) that if you are using the .def files you
    need to explicitally declare your exported functions in the source code.

-- Raffaele
Received on Monday, 6 September 1999 13:32:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC