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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c1b98fe2a8046ba0 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.224.207.66 with SMTP id fx2mr7893150qab.7.1354634260978; Tue, 04 Dec 2012 07:17:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.62.164 with SMTP id z4mr3051128qer.34.1354634260944; Tue, 04 Dec 2012 07:17:40 -0800 (PST) Path: gf5ni47564750qab.0!nntp.google.com!c8no248901qao.0!postnews.google.com!p17g2000vbn.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 4 Dec 2012 07:17:40 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: p17g2000vbn.googlegroups.com; posting-host=193.173.52.213; posting-account=Od-2dQoAAAB0Ax1n9anxOF811WhPXsCz NNTP-Posting-Host: 193.173.52.213 References: <05172689-1761-45d4-9699-c829f6e63c93@r14g2000vbd.googlegroups.com> User-Agent: G2/1.0 X-HTTP-Via: 1.1 S00-PROXY-ISA X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe) Message-ID: <23f2ca78-1a74-4b77-9543-c152b8691ca7@p17g2000vbn.googlegroups.com> Subject: Re: ada and gnat (mingw) From: Hans Vlems Injection-Date: Tue, 04 Dec 2012 15:17:40 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-04T07:17:40-08:00 List-Id: On 4 dec, 15:21, Simon Clubley wrote: > On 2012-12-04, Hans Vlems 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 > > > =A0cc_hyphen : constant character :=3D '-'; > > =A0cc_comma : constant character :=3D ','; > > =A0cc_digit9 =A0 : constant character :=3D '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 u= it 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