This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: function pointers & DLL's
- To: "Ralf Habacker" <Ralf dot Habacker at saght dot tessag dot com>, "Cygwin" <cygwin at cygwin dot com>
- Subject: RE: function pointers & DLL's
- From: "Andrej Borsenkow" <Andrej dot Borsenkow at mow dot siemens dot ru>
- Date: Mon, 14 May 2001 18:07:51 +0400
> >
> > For GCC (at least :-) __declspec(dllimport) is optional for functions but
> > is mandatory for variables. The side-effect of the above is, that function
> > address is no more static and cannot be used as static initializer, e.g.
> > in function dispatch table like
> >
> That's not right. Paul Sokolvsky has written an ld patch named auto-import
> initial for mingw, which is adapted to cygwin. Look into the appended files.
> If you like, you can have this patched ld by mail and try it out.
>
Ehem ... what exactly is not right? If this patch is already included in
current Cygwin GCC/binutils - granted, I have not tried it lately. If not - my
statement is still correct for the curent GCC.
-andrej
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple