[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: undefined reference to `main' and strange gnat behaviour



On Tue, 23 Sep 2014 15:22:51 +0200
Ludovic Brenta
<ludovic@ludovic-brenta.org> wrote:

> Gour wrote:
> > starting with Ada by reading English's Craft 95 and Barnes 95 
> > books...
> 
> These are both excellent starting points.  Especially John English
> is more accessible to beginners IMHO.

I agree, Craft is wonderful book.

> I'll try to reproduce that later and report back.  This is the first 
> time I saw this.

OK. Thank you.

> Come to think of it, are you really sure hello.adb contains a
> procedure and not a package?

$ cat hello.adb 
with Ada.Text_IO;
procedure Hello is
begin
    Ada.Text_IO.Put ("Hiya world!");
    Ada.Text_IO.New_Line;
end Hello;


straight from the terminal...


Sincerely,
Gour

-- 
What is night for all beings is the time of awakening 
for the self-controlled; and the time of awakening for 
all beings is night for the introspective sage.



Reply to: