From: Adam Beneschan <adambeneschan@gmail.com>
Subject: Re: Can .ads be compiled alone?
Date: Fri, 7 Nov 2014 08:50:43 -0800 (PST)
Date: 2014-11-07T08:50:43-08:00 [thread overview]
Message-ID: <92cf9a5a-52f7-4174-85b6-2629ba21d059@googlegroups.com> (raw)
In-Reply-To: <520f8f3d-b345-4ef8-ac41-ead78edde92a@googlegroups.com>
On Thursday, November 6, 2014 9:21:38 PM UTC-8, moixa wrote:
> Newbie question.
>
> I have only two files, machinery_1_3.ads [1] and machinery_1_3.adb [2], in some directory, when I `gnat compile machinery_1_3.ads`, it told me compile error, (but no further information).
Did it actually say "compile error"? I get a very different message when I try it, and that message *is* further information. Specifically, I get this:
cannot generate code for file machinery_1_3.ads (package spec)
to check package spec for errors, use -gnatc
When asking a question (either here or on StackOverflow), it's very helpful to include the exact message you're getting when asking about an error. The error message (and/or warning message, and/or exception message, and/or stack trace) is very useful information, and I cannot understand why so many questioners (especially on StackOverflow) omit this information when asking for help. (And, in some cases, won't provide it until people ask multiple times.)
-- Adam
next prev parent reply other threads:[~2014-11-07 16:50 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 5:21 Can .ads be compiled alone? moixa
2014-11-07 6:09 ` Jeffrey Carter
2014-11-07 17:26 ` Robert A Duff
2014-11-07 17:41 ` Jeffrey Carter
2014-11-07 6:20 ` J-P. Rosen
2014-11-07 7:48 ` Chris Moore
2014-11-07 14:54 ` Tero Koskinen
2014-11-07 15:49 ` Björn Lundin
2014-11-07 16:29 ` G.B.
2014-11-08 13:01 ` moixa
2014-11-08 14:55 ` G.B.
2014-11-07 16:29 ` G.B.
2014-11-07 16:44 ` Adam Beneschan
2014-11-07 17:14 ` Shark8
2014-11-08 21:31 ` Chris Moore
2014-11-07 16:50 ` Adam Beneschan [this message]
2014-11-07 17:14 ` Robert A Duff
2014-11-08 2:01 ` Randy Brukardt
2014-11-15 12:54 ` rriehle
2014-11-15 19:17 ` Robert A Duff
2014-11-15 19:19 ` Robert A Duff
2014-11-17 15:52 ` Adam Beneschan
2014-11-17 0:07 ` rriehle
2014-11-17 6:50 ` Simon Wright
2014-11-24 3:16 ` rriehle
2014-11-24 6:34 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox