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 13:43:02 PST Path: nntp.gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!howland.reston.ans.net!swrinde!gatech!udel!darwin.sura.net!gwu.edu!gwu.edu!not-for-mail From: mfeldman@seas.gwu.edu (Michael Feldman) Newsgroups: comp.lang.ada Subject: Re: GNAT NT & Ada.Direct_IO Date: 9 Jan 1995 16:43:02 -0500 Organization: George Washington University Message-ID: <3esal6$h4i@felix.seas.gwu.edu> References: <3eqe9u$n0b@msunews.cl.msu.edu> NNTP-Posting-Host: 128.164.9.3 Date: 1995-01-09T16:43:02-05:00 List-Id: In article <3eqe9u$n0b@msunews.cl.msu.edu>, Mark Riordan wrote: >When I run: > > gcc -c a-direio.adb > >I am surprised to get the message: > >"No code generated for Ada.Direct_Io (body) in file a-direio.adb" Perhaps NYU will answer your question more articulately than I, but in fact GNAT does not generate code when a _generic_ (like Direct_IO) is compiled. The syntactic and semantic checking is done, but the code is not generated till the generic unit is instantiated. [snip] >Incidentally, the reason I'm trying to recompile Ada.Direct_IO >is that the Public Ada Library Card Catalog program doesn't >work under GNAT NT. It appears to be choking on a control-Z >in a binary input file; the direct I/O files are being opened >in text mode by the Direct_IO package. I'm trying to hack >around the problem. Hmmm - better let NYU handle this one. But the "no code generated" is a normal GNAT message when a generic is compiled. Have you reported this to gnat-report@cs.nyu.edu? If not, please do. Mike Feldman ------------------------------------------------------------------------ Michael B. Feldman - chair, SIGAda Education Working Group Professor, Dept. of Electrical Engineering and Computer Science The George Washington University - Washington, DC 20052 USA 202-994-5919 (voice) - 202-994-0227 (fax) - mfeldman@seas.gwu.edu (Internet) ------------------------------------------------------------------------ One, two, three ways an underdog: Ada fan, Mac fan, Old Liberal Democrat ------------------------------------------------------------------------ Ada on the World-Wide Web: http://lglwww.epfl.ch/Ada/ ------------------------------------------------------------------------