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