This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: function pointers & DLL's


> >
> > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]