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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,800a720b8aa6de9 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!c58g2000hsc.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Missing Standard lib in gnat Date: Fri, 25 Apr 2008 02:35:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <434ea2e0-0412-4a12-96f8-f0c011bb56b9@c58g2000hsc.googlegroups.com> References: NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1209116158 23751 127.0.0.1 (25 Apr 2008 09:35:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 25 Apr 2008 09:35:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c58g2000hsc.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040924,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:21084 Date: 2008-04-25T02:35:58-07:00 List-Id: S=E9bastien wrote: > Hi, > > I'm using gnat-4.1 and I found out some standard libs are missing: > > try the following sample test: > > with Ada.Calendar.Formatting; > > procedure test is > begin > Ada.Text_IO.Put_Line("test"); > end test; > > And get at compile time: > mscm@routeur:~/gnat/aws$ gcc -gnat05 -c test.adb > test.adb:1:06: "ada.calendar.formatting" is not a predefined library unit > > So is there a lot of missing stuff in gnat? gnat-4.1 supports all of Ada 95 but only a few Ada 2005 features. More features were added in gnat-4,2 and still more in gnat-4.3. Ada.Calendar.Formatting is one of the units that only appeared in gnat-4.3. In the mean time, GNAT.Calendar.Time_IO might provide what you need. -- Ludovic Brenta.