From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fb9cb88204b780c2,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Marcus Lauster Newsgroups: comp.lang.ada Subject: simple programs -> one file with gps 2008 (gpl)? Date: Fri, 08 Aug 2008 21:12:50 +0200 Message-ID: <6g3k63Fe28ukU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net A4tD0j0/zTqfGG9b7ozXcgMKFUlV5jocijikmKz16Mb9bAu96c Cancel-Lock: sha1:fWhTQ6figfC2tp3zOz48lQYWWa8= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) Xref: g2news1.google.com comp.lang.ada:1564 Date: 2008-08-08T21:12:50+02:00 List-Id: 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