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

>>>>> jose.kahan@imag.fr:

> I'm not using them :) But you can find some useful scripts to generate 
> them under libwww/config:

> 	makexprt.pl
> 	makedefs.pl
> 	makeindx.pl

I used the makedefs.pl script directly on a wwwall.files file I
created following Raffaeles instructions.  I used the command
 perl ../../../config/makedefs.pl -headerEXPORTS -d.. @wwwall.files >wwwall.def

I then added 
        -def:windows\wwwall.def
to the list of "link" flags, and it worked like a charm.

>> 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?

> Ah, sorry. You just went beyond my Windows lore. I don't know how to
> do that as we haven't yet tried to do it.

Hm... looks like "__declspec(dllimport)" isn't needed if I use a .def
file.  Which makes me wonder: is it *ever* neccessary?  Maybe the .lib 
file has all the information neccessary to find the link symbols?

Received on Monday, 13 September 1999 04:19:28 UTC