comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Ada Packages
Date: Sat, 17 Sep 2011 08:42:15 +0100
Date: 2011-09-17T08:42:15+01:00	[thread overview]
Message-ID: <m2k497399k.fsf@pushface.org> (raw)
In-Reply-To: 9divtrFlavU1@mid.individual.net

Georg Maubach <ada_resources@gmx.de> 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.



  reply	other threads:[~2011-09-17  7:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-17  5:45 Ada Packages George
2011-09-17  6:15 ` Jeffrey Carter
2011-09-17  6:16 ` J-P. Rosen
2011-09-17  7:18 ` Georg Maubach
2011-09-17  7:42   ` Simon Wright [this message]
2011-09-17  7:46   ` Georg Maubach
  -- strict thread matches above, loose matches on Subject: below --
2004-02-17 10:20 ada packages Kuba Malczak
2004-02-17 11:10 ` Preben Randhol
2004-02-17 11:55   ` Kuba Malczak
1996-06-11  0:00 ADA PACKAGES Robert Adams
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox