This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: cygwin ld import library issue fix (removing unused "_nm_" symbols)




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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]