comp.lang.ada
 help / color / mirror / Atom feed
From: tchi_yuan@hotmail.com (Willy)
Subject: Re: AdaGide (Gnat) Build error
Date: 28 Feb 2003 09:00:21 -0800
Date: 2003-02-28T17:00:21+00:00	[thread overview]
Message-ID: <a909a74f.0302280900.44c0c5e4@posting.google.com> (raw)
In-Reply-To: b3nbbs$ojb$1@news.uni-stuttgart.de

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"



  reply	other threads:[~2003-02-28 17:00 UTC|newest]

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

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