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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,b1558fe570ef93b8 X-Google-Attributes: gid103376,public From: dewar@gnat.com Subject: Re: Problems with ADA libraries Date: 1998/11/06 Message-ID: <71teq8$q0q$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 408837170 References: <3642143b.0@news1.mcmail.com> X-Http-Proxy: 1.0 x8.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Nov 06 00:10:48 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-11-06T00:00:00+00:00 List-Id: In article <3642143b.0@news1.mcmail.com>, "Bryan Stacey Couch" wrote: > Hi! > > I am a student studying for my degree in the UK I am having problems with > GNATS compiler for Windows 98. I am trying to use the CALENDER packager but > keep being told that it can't be found. The file is in the library > directory and I tried putting it in the same directory as the source file > but to no avail. > > The code is as follows, it is going to be used as a timing package for an > automated machine line. This basic code doesn't do much I just wanted to > check out how it worked. > > Any help would be much appreciated and I don�t want someone to WRITE THE > CODE for me, just help with the compilation would be great. It sure is a pity that you insisted on using the obsolete Ada 83 name for the package instead of the proper Ada 95 name: 1. with Ada.Calender; use Ada.Calender; | >>> "Ada.Calender" is not a predefined library unit >>> possible misspelling of "Ada.Calendar" 2. procedure Time1 is 3. package Time_Io is new Fixed_Io(Day_Duration); 4. use Time_Io; 5. T:Day_Duration; 6. X:Float; 7. begin 8. T:=Secound(Clock); 9. Time_Io.Put(T); 10. New_Line; 11. for Z in 1..1000 loop 12. X:=5.23234; 13. end loop; 14. T:=Secounds(Clock); 15. Time_Io.Put(T); 16. New_Line; 17. end Time1; We can't give such a warning for Calender, since it is just fine for you as a user to define your own package called Calender (or misspelled any other way you please), but you can't introduce your own children of Ada. Robert Dewar Ada Core Technologies -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own