comp.lang.ada
 help / color / mirror / Atom feed
* ada and gnat (mingw)
@ 2012-12-04 14:06 Hans Vlems
  2012-12-04 14:21 ` Simon Clubley
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Hans Vlems @ 2012-12-04 14:06 UTC (permalink / raw)


This is not a real ADA language question and thus possibly off topic
but don't be too hard on a newbie :)
I want to use my own packages. Example:

package my_constants is

 cc_hyphen : constant character := '-';
 cc_comma : constant character := ',';
 cc_digit9   : constant character := '9';

end my_constants;

This file is stored as my_constants.adb (on a WIndows platform).
gnatmake my_constants.adb results in:
gnatmake: my_constants.adb:1:08: keyword "body" expected here [see
file name]

Inserting the reserverd word body after package on line 1 doesn't
help...
What am I doing wrong and where can I find information on how to drive
this compiler?
Hans

PS
Apologies for the OT post



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

end of thread, other threads:[~2012-12-04 20:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-04 14:06 ada and gnat (mingw) Hans Vlems
2012-12-04 14:21 ` Simon Clubley
2012-12-04 15:17   ` Hans Vlems
2012-12-04 16:49     ` Georg Bauhaus
2012-12-04 17:37       ` Simon Clubley
2012-12-04 20:29     ` Anh Vo
2012-12-04 14:21 ` Dmitry A. Kazakov
2012-12-04 14:26 ` Vinzent Höfler

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