comp.lang.ada
 help / color / mirror / Atom feed
From: Marcus Lauster <marcus.lauster@gmx.de>
Subject: simple programs -> one file with gps 2008 (gpl)?
Date: Fri, 08 Aug 2008 21:12:50 +0200
Date: 2008-08-08T21:12:50+02:00	[thread overview]
Message-ID: <6g3k63Fe28ukU1@mid.individual.net> (raw)

Hi,

I'm new to Ada and therefore I'm digging through the book "Programming 
in Ada 2005". In Chapter 4 on Page 57 the autor states: "Complete simple 
Programms might be presented in a single file." Furthermore he outlines 
the structure of how such a simple program might look.

package x is -- spec and body of Objects
with x; use x;
package xx is --
with xx; use xx;
...
procedure Main is...

I typed a program with similar structure into GPS 2008 (GPL) and while 
trying to compile the GPS compiler aborted with the following message

"end of file expected, file can have only one compilation unit"

So my question is how to convince the underlying compiler of GPS that my 
program is a simple program.

Regards




             reply	other threads:[~2008-08-08 19:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08 19:12 Marcus Lauster [this message]
2008-08-08 20:25 ` simple programs -> one file with gps 2008 (gpl)? Jeffrey R. Carter
2008-08-08 20:54   ` [Solved] " Marcus Lauster
2008-08-08 21:29   ` Ed Falis
2008-08-11  8:44   ` Lucretia
2008-08-08 22:44 ` amado.alves
2008-08-10 22:25   ` Robert A Duff
2008-08-12 10:21     ` amado.alves
2008-08-12 17:03       ` Simon Wright
2008-08-13 12:45         ` Stephen Leake
replies disabled

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