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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b0dc2afa3347597f,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.8.229 with SMTP id u5mr511963pba.0.1316660227630; Wed, 21 Sep 2011 19:57:07 -0700 (PDT) Path: lh7ni2258pbb.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: George Newsgroups: comp.lang.ada Subject: AdaTutor Compilation with GNAT Date: 22 Sep 2011 02:57:05 GMT Message-ID: <9dvmg1Fu13U1@mid.individual.net> Mime-Version: 1.0 X-Trace: individual.net 6eoTNCjEh8cAQxt6glxenArm8qZVIkkcfOFMzwy+Jh8g9VfIso Cancel-Lock: sha1:ku8mfjnPqBdpEtPu/xfW7W8RgLM= User-Agent: Pan/0.132 (Waxed in Black) Xref: news1.google.com comp.lang.ada:18073 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2011-09-22T02:57:05+00:00 List-Id: Dear Listers, I refer to the article http://groups.google.com/group/comp.lang.ada/browse_thread/ thread/6192a34d0c9ffe5b/177a4ab5525a77a2 . I followed the instructions of PRINTME.TXT "APPENDIX D: INSTALLING AdaTutor ON OTHER COMPUTERS" on page p. 41ff. The steps 1. to 8. worked perfectly. I tried to compile AdaTutor as mentioned in step 9., page 43, of PRINTME.TXT on my Debian GNU Linux 5.0 Lenny with GNAT 4.3.2 / gcc-4.3 using gnatmake ADA95.ADA and gnatmake VANILLA.ADA . Neither does compile. gnat says: gcc-4.3 -c -x ada ADA95.ADA ADA95.ADA:35:01: end of file expected, file can have only one compilation unit gnatmake: "ADA95.ADA" compilation error 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. Is there a way to tell gnat to accept that format? Is there a program that can separate specification from body? Do I have to use a different compiler? Is there another way to fix that? Kind regards George