comp.lang.ada
 help / color / mirror / Atom feed
From: Hans Vlems <hvlems@freenet.de>
Subject: Re: ada and gnat (mingw)
Date: Tue, 4 Dec 2012 07:17:40 -0800 (PST)
Date: 2012-12-04T07:17:40-08:00	[thread overview]
Message-ID: <23f2ca78-1a74-4b77-9543-c152b8691ca7@p17g2000vbn.googlegroups.com> (raw)
In-Reply-To: k9l0sh$fff$1@dont-email.me

On 4 dec, 15:21, Simon Clubley <clubley@remove_me.eisner.decus.org-
Earth.UFP> wrote:
> On 2012-12-04, Hans Vlems <hvl...@freenet.de> wrote:
>
>
>
>
>
> > 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
>
> Not OT, IMHO.
>
> With GNAT, the package specification goes into a .ads file; the package
> body goes into a .adb file.
>
> (This assumes you really are defining a specification above. :-))
>
> Simon.
>
> --
> Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
> Microsoft: Bringing you 1980s technology to a 21st century world- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Thanks, that problem is now solved.
Where sould I have found that information? The mingw site is mainly
oriented towards installation issues.
ADA specific information is hard to find.
Hans



  reply	other threads:[~2012-12-04 15:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
replies disabled

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