delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/07/05/21:41:09

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Date: Wed, 5 Jul 2000 21:40:53 -0400
Message-Id: <200007060140.VAA24325@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: mdejong AT cygnus DOT com
CC: cygwin-developers AT sourceware DOT cygnus DOT com
In-reply-to: <Pine.SOL.3.91.1000705183635.5672O@cse.cygnus.com> (message from
Mo DeJong on Wed, 5 Jul 2000 18:37:22 -0700 (PDT))
Subject: Re: Cygwin compiler problem.
References: <Pine DOT SOL DOT 3 DOT 91 DOT 1000705183635 DOT 5672O AT cse DOT cygnus DOT 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019