RE: improve support for building DLLs on cygwin and mingw

2006-09-07 Thread Danny Smith
> > 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

RE: improve support for building DLLs on cygwin and mingw

2006-09-06 Thread Danny Smith
> 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

RE: improve support for building DLLs on cygwin and mingw

2006-09-04 Thread Danny Smith
> 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

Re: [Mingw-users] Re: libbfd, libtool & Win32

2002-09-18 Thread Danny Smith
--- 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. > > > > >

Re: [Mingw-users] Re: libbfd, libtool & Win32

2002-09-18 Thread Danny Smith
--- 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

Re: [Mingw-users] Re: libbfd, libtool & Win32

2002-09-18 Thread Danny Smith
--- 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

RE: C++ exceptions don't work from Cygwin DLLs?

2002-05-11 Thread Danny Smith
--- 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

RE: C++ exceptions don't work from Cygwin DLLs?

2002-05-10 Thread Danny Smith
--- 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 >