www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/15/09:13:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Wed, 15 Mar 2000 15:52:05 +0200 (EET)
Message-Id: <200003151352.PAA24532@platon.sgic.fi>
To: "Timothy I. McGinnis" <tmcginnis AT synertechsystems DOT com>
Cc: cygwin AT sourceware DOT cygnus DOT com, gtk-list AT redhat DOT com
Subject: Re: gtk_entry field turning black in cygwin
From: Tor Lillqvist <tml AT iki DOT fi>

> I am using cygwin B20.1, gtk-win32 20000115 release compiling using
> gcc from the cygwin distribution.

(As the GTk+ port does not use cygwin, and programs using GTk+ thus
shouldn't either (never mix C runtimes), this is really off-topic for
the cygwin list.)

If you really mean you are using the gcc that is included in the B20.1
distribution, you shouldn't. As is said on my webpage for the GTK+ and
GIMP port to Windows, to build programs intended to use the prebuilt
DLLs you can either use MSVC, or gcc 2.95 (or later) with the
-fnative-struct switch.

The reason is that the DLLs are built with gcc-2.95.2 using the
-fnative-struct switch, which makes the struct field allocation and
alignment compatible with MSVC, which is a good thing. (Otherwise
there would have to be separate DLLs for programs built with MSVC and
gcc.) Building with gcc but without the -fnative-struct switch will
cause problems sooner or later, quite possibly like the ones you are
seeing.

Getting a correctly set up gcc can be a bit convoluted. (We want a
version that has -fnative-struct and uses the MSVCRT runtime.)  There
are instructions on one way to do it in the README.win32 file linked
to from the webpage, but people have told me that those instructions
are unnecessarily convoluted. Apparently it is easier using a pure
mingw environment. Possibly some recent mingw gcc release from Mumit
Khan is suitable as is?

--tml

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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