cygwin ld import library issue fix (removing unused "_nm_" symbols)
Ralf Habacker
Ralf.Habacker@freenet.de
Sat Apr 27 11:24:00 GMT 2002
Ralf Habacker
> -----Original Message-----
> From: Charles Wilson [mailto:cwilson@ece.gatech.edu]
> Sent: Saturday, April 27, 2002 6:55 PM
> To: Ralf Habacker
> Cc: Kde-Cygwin; Cygwin-Apps; Binutils
> Subject: Re: cygwin ld import library issue fix (removing unused "_nm_"
> symbols)
>
>
> Ralf Habacker wrote:
>
>
> >>b) build an app that uses that dll, and which accesses both a function
> >>export and a data export from the dll.
> >>
> >
> > ------------------------------------------------
> > $ cat client.cc
> > ------------------------------------------------
> > #include <stdio.h>
> > #include "dll.h"
> >
> > main()
> > {
> > funcs();
> > vars();
> > }
>
>
> Except that I'd access 'v0000' *directly* from client.cc; you're not
> *really* accessing the variable yourself; you're calling a function in
> the DLL which accesses the variable.
... and accessing var0000 in client.cc
Do you have really read the dll.h ?
<snip>
#define vars() \
printf("v0000=%04d\n",var0000);\
<snip> ^^^^^^^
the vars macro is called in client.cc !!
Ralf
More information about the Cygwin-apps
mailing list