comp.lang.ada
 help / color / mirror / Atom feed
* simple programs -> one file with gps 2008 (gpl)?
@ 2008-08-08 19:12 Marcus Lauster
  2008-08-08 20:25 ` Jeffrey R. Carter
  2008-08-08 22:44 ` amado.alves
  0 siblings, 2 replies; 10+ messages in thread
From: Marcus Lauster @ 2008-08-08 19:12 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-08-13 12:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-08 19:12 simple programs -> one file with gps 2008 (gpl)? Marcus Lauster
2008-08-08 20:25 ` 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

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