comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Lundin" <bnl@tiscali.se>
To: comp.lang.ada@ada-france.org
Subject: Re: io_graph.adb:7:22: warning: "Ada.Command_Line.Environment" is aninternal GNAT unit
Date: Wed, 1 Dec 2004 23:01:20 +0100
Date: 2004-12-01T23:01:20+01:00	[thread overview]
Message-ID: <mailman.164.1101938604.10401.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <861a5c19.0412011120.1692fccf@posting.google.com>

onsdag 01 december 2004 20:20 skrev MagIk:
> "Marc A. Criley" <mcNOSPAM@mckae.com> wrote in message
> news:<3160ebF36m6ltU1@individual.net>...
>
> > "Björn Lundin" <bnl@tiscali.se> wrote:
> > >tisdag 30 november 2004 20:48 skrev MagIk:
> > >> Hi all,
> > >>
> > >> when i Compil my programme (requier Lib X11) i have this 2 Warning
> > >>
> > >> io_graph.adb:7:22: warning: "Ada.Command_Line.Environment" is an
> > >> internal GNAT unit
> > >> io_graph.adb:7:22: warning: use of this unit is non-portable and
> > >> version-dependent
> > >
> > > Just what it says. If you change compiler, it won't work since the
> > > package 'Ada.Command_Line.Environment' is a gnat-specific package
> >
> > And if you change GNAT compiler _version_ it may not work the same, or
> > even be present, since it's specific to GNAT.
> >
> > Marc A. Criley
> > McKae Technologies
> >
> > www.mckae.com
>
> ok, i have the version 3.3.4 (I have the version of slackware 10..)
>
> but i could installl gnat-3.15P.. but i dont know how Instal it :(
>
> how install the Gnat-3.15P for Slack 10?

No, you misunderstand. The package may or may not be available in 3.15, but if 
it is, it will be equally non-portable.

It is a 'conveniance' package provide by the compiler-vendor, not a package 
required to be distributed with all Ada compilers. 

It's nothing wrong with it, just that it _might_ not be present when you use 
another compiler, like Object Ada..

You can use it, or not. (If not do a 'pragma Import' on getenv, if your 
targets are all unix)

/Björn












  reply	other threads:[~2004-12-01 22:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-30 19:48 io_graph.adb:7:22: warning: "Ada.Command_Line.Environment" is an internal GNAT unit MagIk
2004-11-30 20:44 ` Björn Lundin
2004-12-01 13:48   ` io_graph.adb:7:22: warning: "Ada.Command_Line.Environment" is aninternal " Marc A. Criley
2004-12-01 19:20     ` MagIk
2004-12-01 22:01       ` Björn Lundin [this message]
2004-12-02  6:46       ` Per Sandberg
2004-12-02 11:35         ` Martin Krischik
2004-12-02 17:11           ` Per Sandberg
2004-12-02 20:53             ` Simon Wright
replies disabled

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