comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
To: "comp.lang.ada mail to news gateway" <comp.lang.ada@ada.eu.org>
Cc: tchi_yuan@hotmail.com
Subject: Re: AdaGide (Gnat) Build error
Date: Fri, 28 Feb 2003 12:20:36 -0600
Date: 2003-02-28T12:20:36-06:00	[thread overview]
Message-ID: <mailman.9.1046456494.1343.comp.lang.ada@ada.eu.org> (raw)

You apparently didn't pay close attention to the previous responses
to your original message.  The filename extension must be
.adb _not_ .ada

----- Original Message -----
From: "Willy" <tchi_yuan@hotmail.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: Friday, February 28, 2003 11:00 AM
Subject: Re: AdaGide (Gnat) Build error


> It still doesn't work. I changed the file name and the procedure name.
> I'm still getting the same error when I build
>
> -- filename is : test1.ada
>
> -- source code :
>
> with Text_Io;
> use Text_Io;
>
> procedure test1 is
>
>    package Es_Entiers is new Integer_Io ( Integer );
>
>    Num1 : Integer := 1;
>    Num2 : Integer := 2;
>    Num3 : Integer;
> begin
>
>    Num3 := Num1 / Num2;
>    Put("Answer: ");
>    Es_Entiers.Put(Num3);
>
> end test1;
>
>
> -- Error when I build :
>
> Building...
> GNATMAKE 3.15p  (20020523) Copyright 1995-2002 Free Software Foundation,
> Inc.
> End of compilation
> gnatmake: "test1" not found
> Done--error detected.
>
> -- Is there any setting I'm missing ? I'm new to AdaGide.
>
>
> Thanks,
> Willy-
>
>
>
>
>
> Peter Hermann <ica2ph@iris16.csv.ica.uni-stuttgart.de> wrote in message
news:<b3nbbs$ojb$1@news.uni-stuttgart.de>...
> > Willy <tchi_yuan@hotmail.com> wrote:
> > > The file name is test.ada
> > 1.
> > rename your file:  test.adb
> > 2.
> > check for procedure name to be "test" (the same as the file name)
> >
> > now you have fulfilled the conventions of the useful gnat way of naming.
> >
> >
> > longterm advice:
> > never use a procedure with the name "test",
> > better choose names other than test, e.g. test1 etc.
> > because there are operating systems (some unix)
> > with a special meaning of "test"
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>




             reply	other threads:[~2003-02-28 18:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-28 18:20 David C. Hoos [this message]
2003-03-01  2:38 ` AdaGide (Gnat) Build error Jeffrey Carter
2003-03-01  3:35   ` David C. Hoos, Sr.
2003-03-01  2:51 ` Steve
  -- strict thread matches above, loose matches on Subject: below --
2003-02-28  9:31 Willy
2003-02-28  9:49 ` Peter Hermann
2003-02-28 17:00   ` Willy
2003-02-28 23:46     ` Karen
replies disabled

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