>
> I propose to make 'dllexport' unnecessary, and to make it
> possible to use 'dllimport' everywhere where the users were
> used to write either 'dllimport' or 'dllexport', depending on
> the compilation pass and unit.
I think what bothers me most is that this will encourage people to use
> gcc reports warnings:
>
> warning: 'externvar' defined locally after being referenced
> with dllimport linkage
> warning: 'externfunc' defined locally after being referenced
> with dllimport linkage
>
> Once libtool is changed to not cause link errors for
> self-references, there is no need
> You find complete details about this approach in
> http://www.haible.de/bruno/woe32dll.html
>
extern __declspec(dllimport) int externvar[5];
extern __declspec(dllimport) int externfunc(int);
int externfunc2 (int x)
{
return externvar[x] + externfunc (0);
}
int externvar[5] = { 11, 22, 3
--- David Olofson <[EMAIL PROTECTED]> wrote: > On Wednesday 18
September 2002 12:29, Danny Smith wrote:
> [...]
> > > > A gotcha with this is that some exported names in dll are aliases,
> > > > the prime culprit being stdcall names.
> > >
> >
--- David Olofson <[EMAIL PROTECTED]> wrote: > On Wednesday 18
September 2002 11:46, Danny Smith wrote:
> > --- David Olofson <[EMAIL PROTECTED]> wrote: > On Tuesday 17
> >
> > I'm a bit late catching up with this thread. No one has mentio
--- David Olofson <[EMAIL PROTECTED]> wrote: > On Tuesday 17
September 2002 20:33, Guido Draheim wrote:
> [...]
> > On another e-mail, you said to have some idea of the `objdump -p`
> > output of an export table. If someone could work that out with a
> > portable shell program (sh/sed/etc), then
--- Robert Collins <[EMAIL PROTECTED]> wrote: >
>
> > -Original Message-----
> > From: Danny Smith [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, May 11, 2002 12:03 PM
>
> > Known problem which will not be solved until the exception
> > handl
--- Robert Collins <[EMAIL PROTECTED]> wrote: > Danny, I hope you
don't object to being copied in...
>
> > -Original Message-
> > From: Charles Wilson [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, May 11, 2002 7:49 AM
> > To: Bob Friesenhahn
> > Cc: [EMAIL PROTECTED]; Robert Collins
>