Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps AT cygwin DOT com Delivered-To: mailing list cygwin-apps AT cygwin DOT com From: "Ralf Habacker" To: "Charles Wilson" Cc: "Kde-Cygwin" , "Cygwin-Apps" , "Binutils" Subject: RE: cygwin ld import library issue fix (removing unused "_nm_" symbols) Date: Sat, 27 Apr 2002 20:20:13 +0200 Message-ID: <000f01c1ee18$2c8739d0$d36707d5@BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <3CCAD7F1.2080609@ece.gatech.edu> Importance: Normal Ralf Habacker > -----Original Message----- > From: Charles Wilson [mailto:cwilson AT ece DOT gatech DOT 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 > > #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 ? #define vars() \ printf("v0000=%04d\n",var0000);\ ^^^^^^^ the vars macro is called in client.cc !! Ralf