From: George <mail2george@gmx-topmail.de>
Subject: AdaTutor Compilation with GNAT
Date: 22 Sep 2011 02:57:05 GMT
Date: 2011-09-22T02:57:05+00:00 [thread overview]
Message-ID: <9dvmg1Fu13U1@mid.individual.net> (raw)
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
next reply other threads:[~2011-09-22 2:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-22 2:57 George [this message]
2011-09-22 5:19 ` AdaTutor Compilation with GNAT Jeffrey Carter
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