I have discovered what may be a bug in the linker/relocater in cygwin
(or, more likely, I am doing something stupid again).
When I use a structure containing function pointers, and this structure
is placed in an archive, then the function pointer becomes NULL. As an
example, compile the attache
As was explained in the previous post, the structure must be defined as
'extern' when referenced from test.c - a stupid mistake from my side.
Why I thought it was a bug was that the code worked perfectly on the
same compiler version under Linux and Solaris, but failed under Cygwin.
The fact tha
2 matches
Mail list logo