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,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.207.66 with SMTP id fx2mr7793711qab.7.1354629996044; Tue, 04 Dec 2012 06:06:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.26.35 with SMTP id i3mr2989873qeg.31.1354629995823; Tue, 04 Dec 2012 06:06:35 -0800 (PST) Path: gf5ni47564750qab.0!nntp.google.com!c8no238801qao.0!postnews.google.com!r14g2000vbd.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 4 Dec 2012 06:06:35 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: r14g2000vbd.googlegroups.com; posting-host=193.173.52.213; posting-account=Od-2dQoAAAB0Ax1n9anxOF811WhPXsCz NNTP-Posting-Host: 193.173.52.213 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: <05172689-1761-45d4-9699-c829f6e63c93@r14g2000vbd.googlegroups.com> Subject: ada and gnat (mingw) From: Hans Vlems Injection-Date: Tue, 04 Dec 2012 14:06:36 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-12-04T06:06:35-08:00 List-Id: 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