comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+news@pvv.org>
Subject: Re: Creating tempfile takes too long: GNAT or Windows bug? (& GtkAda)
Date: Fri, 11 Oct 2002 10:59:44 +0000 (UTC)
Date: 2002-10-11T10:59:44+00:00	[thread overview]
Message-ID: <slrnaqdbon.1i4.randhol+news@kiuk0152.chembio.ntnu.no> (raw)
In-Reply-To: ubs62qdv9.fsf@gsfc.nasa.gov

Stephen Leake wrote:
> I agree the current situation is not up to "Ada standards". For
> example, just yesterday I cut and pasted a callback. It compiled
> without error, did the Gtk "connect" call without error, but failed
> with a stack error (not an Ada exception; just a Windows signal) at
> run time. It turned out I had missed a parameter in the callback;
> something an Ada compiler is supposed to catch at compile time.

Can you show us how it looks?

> I'm using a binary release for Windows. It's quite old; Gtk 1.2. There
> is now a Gtk 2.0, and GtkAda 2.0 for Linux. It seems like every
> question I post to the GtkAda mailing list is answered with "that
> works in Gtk 2.0". So I have the same complaint you do, but for
> Windows.

I'm also waiting for the GtkAda 2.0 as it has propper support for
languages etc...

> I'm going to try to compile GtkAda for Cygwin, and see what that does.
> Cygwin ought to be close enough to Linux by now for this to work.

Check the docs here: http://www.gimp.org/~tml/gimp/win32/


   Using GTK+ in your own programs

   In order to use the DLLs as distributed in programs you build
   yourself, you must use either gcc-2.95.2 (or later, 2.95.3 certainly
   works, dunno about GCC 3), or Microsoft Visual C++ 5 or 6. With gcc,
   you should use the -mno-cygwin and -fnative-struct flags. Using any
   other gcc setup will not work. (Hint: struct field alignment. Hint 2:
   msvcrt.dll.) If you don't understand what I am talking about, just
   trust me.

   If you are porting a program that uses GTK+ 1.2 on Unix, use GTK+
   1.3.0 on Windows. Don't be afraid of the 1.3 version number, it
   actually is mostly like 1.2.7, API-wise.

   You are expected to be pretty experienced to be able to use GTK+ in
   your own programs. This isn't Visual Basic. Please don't bother the
   lists with elementary questions without first browsing the archives.

Preben
-- 
Ada95 is good for you.
http://libre.act-europe.fr/Software_Matters/02-C_pitfalls.pdf



  reply	other threads:[~2002-10-11 10:59 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-09 11:58 Creating tempfile takes too long: GNAT or Windows bug? Mário Amado Alves
2002-10-09 14:15 ` BREHMER Philippe,
2002-10-09 16:43 ` tmoran
2002-10-09 17:14 ` Warren W. Gay VE3WWG
2002-10-09 18:40   ` Preben Randhol
2002-10-10 12:06     ` Marin David Condic
2002-10-10 12:29       ` Preben Randhol
2002-10-10 17:29         ` Creating tempfile takes too long: GNAT or Windows bug? (& GtkAda) Warren W. Gay VE3WWG
2002-10-10 19:43           ` Stephen Leake
2002-10-11 10:59             ` Preben Randhol [this message]
2002-10-11 10:46           ` Preben Randhol
2002-10-14 22:51             ` Warren W. Gay VE3WWG
2002-10-15 10:08               ` Preben Randhol
2002-10-11 12:00           ` Marin David Condic
2002-10-11 11:38         ` Creating tempfile takes too long: GNAT or Windows bug? Marin David Condic
2002-10-11 13:57           ` Preben Randhol
2002-10-12 13:14             ` Marin David Condic
2002-10-12 15:01               ` Preben Randhol
2002-10-10 19:44       ` Jeffrey Carter
2002-10-14 12:42         ` Simon Clubley
2002-10-10 14:02   ` Creating tempfile takes too long: GNAT or Windows bug? Solved Mário Amado Alves
2002-10-09 18:56 ` Creating tempfile takes too long: GNAT or Windows bug? Pascal Obry
2002-10-12  4:45 ` James Ross
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox