comp.lang.ada
 help / color / mirror / Atom feed
* AdaTutor Compilation with GNAT
@ 2011-09-22  2:57 George
  2011-09-22  5:19 ` Jeffrey Carter
  0 siblings, 1 reply; 4+ messages in thread
From: George @ 2011-09-22  2:57 UTC (permalink / 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





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

end of thread, other threads:[~2011-09-22 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-22  2:57 AdaTutor Compilation with GNAT George
2011-09-22  5:19 ` Jeffrey Carter
2011-09-22  5:42   ` Georg Maubach
2011-09-22 14:30   ` Robert A Duff

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