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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4377c8caa0e42551 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-09 03:05:41 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!news2.near.net!news.mathworks.com!panix!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: dewar@cs.nyu.edu (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: GNAT NT & Ada.Direct_IO Date: 9 Jan 1995 01:07:03 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3eqjq7$kpe@gnat.cs.nyu.edu> References: <3eqe9u$n0b@msunews.cl.msu.edu> NNTP-Posting-Host: gnat.cs.nyu.edu Date: 1995-01-09T01:07:03-05:00 List-Id: Mark, please be sure to send basic questions like this to gnat-report where they will get answered immediately. THe answer to your question about direct_io is trivial, it is a generic unit, and compiling generic units, like compiling specs, with GNAT does not generate code. It is only when a generic is instantiated that code is generated. Actually in the case of generics, but not package specs, it is conceivable that this will change in the future. Note also that there is a current bug which causes a null object file to be generated for generics. But anyway, the bottom line for the moment is use the -gnatc when compiling generics, since no code is generated. THe only reason for compiling a generic unit like direct_io is to check it out semantically. P.S. the capitlization is because this particular error message always generates mixed case output. It is too much trouble to copy the actual capitalization from he source in this particular case.