Subject: Re: DLL: How to generate .def from UNIX src
From: [email-masked] (Gunther Ebert)

27 Jan 1997 04:53:38 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0Gold (WinNT; I)
Original-To: Valery Fine <[email-masked]>
Original-Cc: [email-masked]
Original-Sender: [email-masked]

Hi,

try

gcc -c <source files>
ar rc <tmplib> <compiled source files (.o)>
ranlib <tmplib>
echo EXPORTS > <.def file>
nm <tmplib> | grep " [CT] " | sed '/ _/s// /' | awk '{print $3;}' >>
<.def file>

This works fine for me.

Gunther

Valery Fine wrote:
> 
>   Hello world.
> 
>   Does any body there can point me how one can generate a def files
> from the source (C/C++) to make DLL's?
>   It is assumed the source is "pure" one. No DLLImport/Export things
> but plenty of entry points and global/static variables to access.
> 
>    Any idea will be appreciated a lot.
>                                             Valery
> =================================================================
> Dr. Valery Fine                  Telex : 911621 dubna su
>     -----------
> LCTA/Joint Inst.for NuclearRes   Phone : +7 09621 6 40 80
> 141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
> Russia                           mailto:[email-masked]
>                                  mailto:[email-masked]
> Dr. Valeri Faine
>     ------------                 Phone: +41 22 767 6468
> CERN                             FAX  : +41 22 782 2601
> CH-1211 Geneva, 23               mailto:[email-masked]
> Switzerland                      http://nicewww.cern.ch/~fine
> 
> -
> For help on using this list, send a message to
> "[email-masked]" with one line of text: "help".
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".