[Gtk-sharp-list] [Fwd: Re: cygwin & gtk]

Gonzalo Paniagua Javier gonzalo@ximian.com
04 Feb 2003 15:10:57 +0100


--=-LeZF+YlxdXxAB45ymeYV
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

For people using cygwin + gcc 3...


--=-LeZF+YlxdXxAB45ymeYV
Content-Disposition: inline
Content-Description: Reenviado mensaje - Re: cygwin & gtk
Content-Type: message/rfc822

Return-Path: <gtk-app-devel-list-admin@gnome.org>
X-Original-To: gonzalo@gnome-db.org
Delivered-To: gonzalo@gollum.gnome-db.org
Received: from mail.gnome.org (moniker.gnome.org [209.116.70.73]) by
	gollum.gnome-db.org (Postfix) with ESMTP id 76FF237C0ED; Tue,  4 Feb 2003
	14:49:58 +0100 (CET)
Received: from moniker.gnome.org (moniker.gnome.org [127.0.0.1]) by
	mail.gnome.org (Postfix) with ESMTP id 7847C18A34; Tue,  4 Feb 2003
	08:47:07 -0500 (EST)
Delivered-To: gtk-app-devel-list@gnome.org
Received: from mercure.math.u-bordeaux.fr (mercure.math.u-bordeaux.fr
	[147.210.16.143]) by mail.gnome.org (Postfix) with ESMTP id DF358185F4 for
	<gtk-app-devel-list@gnome.org>; Tue,  4 Feb 2003 08:46:39 -0500 (EST)
Received: from mab1.math.u-bordeaux.fr (mab1.math.u-bordeaux.fr
	[147.210.17.21]) by mercure.math.u-bordeaux.fr (8.12.5/8.12.5) with ESMTP
	id h14DkRWv006087; Tue, 4 Feb 2003 13:46:27 GMT
Received: from localhost (torri@localhost) by mab1.math.u-bordeaux.fr
	(8.11.6/8.11.6) with ESMTP id h14DkWj03100; Tue, 4 Feb 2003 14:46:32 +0100
X-Authentication-Warning: mab1.math.u-bordeaux.fr: torri owned process
	doing -bs
From: TORRI Vincent <Vincent.Torri@math.u-bordeaux.fr>
To: Sergey Zhitomirsky <szh@dgap-gw.mipt.ru>
Cc: gtk-app-devel-list@gnome.org
Subject: Re: cygwin & gtk
In-Reply-To: <Pine.LNX.4.44.0302041522580.20640-100000@dgap-gw.mipt.ru>
Message-ID: <Pine.LNX.4.44.0302041440340.24465-100000@mab1.math.u-bordeaux.fr>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: gtk-app-devel-list-admin@gnome.org
Errors-To: gtk-app-devel-list-admin@gnome.org
X-BeenThere: gtk-app-devel-list@gnome.org
X-Loop: gtk-app-devel-list@gnome.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Help: <mailto:gtk-app-devel-list-request@gnome.org?subject=help>
List-Post: <mailto:gtk-app-devel-list@gnome.org>
List-Subscribe:
	<http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list>,
	<mailto:gtk-app-devel-list-request@gnome.org?subject=subscribe>
List-Id: Writing Apps with GTK+ <gtk-app-devel-list.gnome.org>
List-Unsubscribe:
	<http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list>,
	<mailto:gtk-app-devel-list-request@gnome.org?subject=unsubscribe>
List-Archive: <http://mail.gnome.org/archives/gtk-app-devel-list/>
Date: Tue, 4 Feb 2003 14:46:32 +0100 (CET)
Status:   
Content-Transfer-Encoding: 7bit

On Tue, 4 Feb 2003, Sergey Zhitomirsky wrote:

> Hello
> Can somebody help me 
> I'm unable to run even the following small Gtk program under cygwin 
> 
> #include <gtk/gtk.h>
> int main (int argc, char *argv[]) 
> { 
> 	gtk_init(&argc, &argv);
> 	// gtk_main();
> 	return 1;
> }
> 
> It compiles & links well 
> gcc m.c -o m `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`
> 
> but when I try to run it I always receive: 
> 
>  5 [unknown (0x164)] ? 636 cygheap_fixup_in_child: Couldn't reserve space 
> for cygwin's heap (0x615C0000 <0xAA0000>) in child, Win32 error 487
> E:\cygwin\home\m.exe: *** m.AllocationBase 0x0, m.BaseAddress 0x615C0000, 
> m.RegionSize 0x80000, m.State 0x10000
> 
> Am I doing something wrong ? 

Hello,

>From the gtk win32 homepage : 

With gcc, you should use the -mno-cygwin and -fnative-struct flags (in gcc 
3.x, instead of -fnative-struct use -mms-bitfields)

Vincent TORRI

> 
> 
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 

-- 
TORRI Vincent
Mathematiques Appliquees Bordeaux                                                
Institut de Mathematiques                                                       
Universite Bordeaux 1                                                           
351 cours de la liberation                                                      
33 405 Talence cedex - France                                                   
                                                                                
Tel : 33 (0)5 57 96 21 42                                                       
Fax : 33 (0)5 56 84 26 26                                                       
--

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

--=-LeZF+YlxdXxAB45ymeYV--