comp.lang.ada
 help / color / mirror / Atom feed
From: wojtek@power.com.pl (Wojtek Narczynski)
Subject: Re: Gnat: system__finalization_implementation__finalize_list
Date: 29 Jan 2003 23:50:52 -0800
Date: 2003-01-30T07:50:52+00:00	[thread overview]
Message-ID: <5ad0dd8a.0301292350.414ad2c6@posting.google.com> (raw)
In-Reply-To: 3e38664a$0$351$bed64819@news.gradwell.net

porton@ex-code.com (Victor Porton) wrote in message news:<3e38664a$0$351$bed64819@news.gradwell.net>...

> It is inside of Ada libraries. To check I would need to download the 
> Gnat sources and probably recompile these :-(

You only need to recompile the runtime libraries. GNAT manual mentions
how to do this.

In default install they are:
/usr/gnat/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/adainclude
/usr/gnat/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/adalib

(But GNAT sources are interesting anyway!)

> Oh, Ada is not so reliable as I cannot find a cause of segfault with 
> all checks turned on! :-~ Like C++...
> 
> >> This error appears after exiting my main rountine (well, the main
> >> rountine is not a procedure but a begin...end block of a package
> >> body.)
> > 

> > That's _not_ a main routine; in Ada, the main routine must be a
> > library level procedure. Hmm, can't find that in the LRM, maybe that's
> > a GNAT distinction.
> 
> "Main rountine" was just my informal wording.

Then you may need to check GNAT manual on invoking Ada from C main
routine. This is not that straightforward. I believe it's described
here http://gcc.gnu.org/onlinedocs/gnat_ug_unx/Generating-the-Binder-Program-in-C.html

Regards,
Wojtek



  parent reply	other threads:[~2003-01-30  7:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29  8:23 Gnat: system__finalization_implementation__finalize_list Victor Porton
2003-01-29  9:02 ` Victor Porton
2003-01-29 19:45 ` Stephen Leake
2003-01-29 23:35 ` Victor Porton
2003-01-30  0:28   ` Bill Findlay
2003-01-30  7:50   ` Wojtek Narczynski [this message]
2003-01-30 17:07   ` Stephen Leake
2003-01-30  4:28 ` Victor Porton
2003-01-30 17:08   ` Stephen Leake
2003-01-30 20:09     ` Robert A Duff
2003-01-31 10:17       ` Alexander Boucke
2003-01-31 22:11         ` Simon Wright
2003-01-30 20:38 ` Simon Wright
2003-01-31  3:19 ` Victor Porton
replies disabled

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