| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-apps-help AT cygwin DOT com; run by ezmlm |
| Sender: | cygwin-apps-owner AT cygwin DOT com |
| List-Subscribe: | <mailto:cygwin-apps-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin-apps/> |
| List-Post: | <mailto:cygwin-apps AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs> |
| Mail-Followup-To: | cygwin-apps AT cygwin DOT com |
| Delivered-To: | mailing list cygwin-apps AT cygwin DOT com |
| From: | "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de> |
| To: | "Charles Wilson" <cwilson AT ece DOT gatech DOT edu> |
| Cc: | "Kde-Cygwin" <kde-cygwin AT kde DOT org>, "Cygwin-Apps" <cygwin-apps AT cygwin DOT com>, |
| "Binutils" <binutils AT sources DOT redhat DOT com> | |
| 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 |
| 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 <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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |