This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Cygwin compiler problem.
- To: mdejong at cygnus dot com
- Subject: Re: Cygwin compiler problem.
- From: DJ Delorie <dj at delorie dot com>
- Date: Wed, 5 Jul 2000 21:40:53 -0400
- CC: cygwin-developers at sourceware dot cygnus dot com
- References: <Pine.SOL.3.91.1000705183635.5672O@cse.cygnus.com>
> 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.