comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: AdaTutor Compilation with GNAT
Date: Wed, 21 Sep 2011 22:19:13 -0700
Date: 2011-09-21T22:19:13-07:00	[thread overview]
Message-ID: <j5egqi$blk$1@tornado.tornevall.net> (raw)
In-Reply-To: <9dvmg1Fu13U1@mid.individual.net>

On 09/21/2011 07:57 PM, George wrote:
>
> As I am new to Ada, it seems that GNAT expects the specification and the
> body of a package to reside in different files. In the sources of
> AdaTutor, specification and body reside in one .ADA file.

This is correct: GNAT requires one compilation unit per file. Try using gnatchop 
to break the files into something that GNAT can handle.

gnatchop ADA95.ADA

should break it into custom_io.ads and custom_io.adb.

gnatchop VANILLA.ADA

should do the same.

-- 
Jeff Carter
"If you think you got a nasty taunting this time,
you ain't heard nothing yet!"
Monty Python and the Holy Grail
23



  reply	other threads:[~2011-09-22  5:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22  2:57 AdaTutor Compilation with GNAT George
2011-09-22  5:19 ` Jeffrey Carter [this message]
2011-09-22  5:42   ` Georg Maubach
2011-09-22 14:30   ` Robert A Duff
replies disabled

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