This is the mail archive of the cygwin-developers@sourceware.cygnus.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: Cygwin compiler problem.



> DeviceDriver DD = {
>     "Canvas",
>     GetDrawable

THe problem is that importing *data* tells the compiler to change a
reference to the data into a dereference of a pointer to the data
(it's the pointer you import, not the address itself).  Since the
address the pointer points to cannot be known at compile time, the
compiler cannot store that pointer in the statically initialized
structure DD.

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