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