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,e5cc1b2c83f144e8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.1.39 with SMTP id 7mr213961pbj.11.1316245335683; Sat, 17 Sep 2011 00:42:15 -0700 (PDT) Path: m9ni8073pbd.0!nntp.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada Packages Date: Sat, 17 Sep 2011 08:42:15 +0100 Organization: A noiseless patient Spider Message-ID: References: <9diqfnFu6kU1@mid.individual.net> <9divtrFlavU1@mid.individual.net> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="22628"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Du2oqhyQJaE6gsoZH4EkCla7pzmukwHA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:bzfDNQ3In0OFbftw3fvXpjVV7pw= sha1:3+8JkYqWZfkLWA1fFl64/GbuphE= Xref: news1.google.com comp.lang.ada:18000 Content-Type: text/plain; charset=us-ascii Date: 2011-09-17T08:42:15+01:00 List-Id: Georg Maubach writes: > gcc-4.3 -c basic_num_io.ads > cannot generate code for file basic_num_io.ads (package spec) As someone above pointed out, GNAT won't generate object code from a spec (unless the spec doesn't need, ie must not have) a body. Try compiling the .adb file. -gnatc is "Check syntax and semantics only (no code generation)". I found this out using the command "gnatmake -h". You're better off using gnatmake as the compiler driver, it understands all about dependencies and the Ada bind/link process, and will produce executables if it can.