Re: 1.5.10: problems relocating structures with function pointers

2004-07-22 Thread Justin Schoeman
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

Re: 1.5.10: problems relocating structures with function pointers

2004-07-22 Thread H. Henning Schmidt
> 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 t

Basic C/C++ (Was: 1.5.10: problems relocating structures with function pointers)

2004-07-21 Thread Rolf Campbell
Justin Schoeman wrote: 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 examp

1.5.10: problems relocating structures with function pointers

2004-07-21 Thread Justin Schoeman
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