comp.lang.ada
 help / color / mirror / Atom feed
* compile error
@ 2001-06-04 20:48 Lin Z
  2001-06-05  9:04 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 4+ messages in thread
From: Lin Z @ 2001-06-04 20:48 UTC (permalink / raw)
  To: comp.lang.ada

Any idea of this compile error--"language defined unit may not be recompile"? 

Thanks.
-- 

_______________________________________________
Get your free email from http://www.mail.com




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: compile error
  2001-06-04 20:48 compile error Lin Z
@ 2001-06-05  9:04 ` David C. Hoos, Sr.
  2001-06-05 14:44   ` Lin
  0 siblings, 1 reply; 4+ messages in thread
From: David C. Hoos, Sr. @ 2001-06-05  9:04 UTC (permalink / raw)


Since compiler messages are compiler-specific, it's always a good
idea to state which compiler and version you're using, the platform,
and to supply the complete specific error message.

It looks like the message might be from a GNAT Ada compiler,
and that for some reason you're attempting to recompile some
language-defined unit, such as Ada.Text_IO.

"Lin Z" <lin@post.com> wrote in message
news:mailman.991713367.30762.comp.lang.ada@ada.eu.org...
> Any idea of this compile error--"language defined unit may not be
recompile"?
>
> Thanks.
> --
>
> _______________________________________________
> Get your free email from http://www.mail.com
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: compile error
  2001-06-05  9:04 ` David C. Hoos, Sr.
@ 2001-06-05 14:44   ` Lin
  2001-06-06 21:27     ` Stephen Leake
  0 siblings, 1 reply; 4+ messages in thread
From: Lin @ 2001-06-05 14:44 UTC (permalink / raw)


Hi,

I'm using Gnat3.11p version on WinNT. The whole compile error display
is "language defined unit may not be recompile". It should not need to
recompile the language defined units when they are "with" by other
units. If the name of the unit is the same as that of the language
defined unit,will Gnat override the predefined one, or need to
activate some specific flags manually?

Cheers.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: compile error
  2001-06-05 14:44   ` Lin
@ 2001-06-06 21:27     ` Stephen Leake
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Leake @ 2001-06-06 21:27 UTC (permalink / raw)


Lin@post.com (Lin) writes:

> Hi,
> 
> I'm using Gnat3.11p version on WinNT. 

This is way old; get gnat 3.13p

> The whole compile error display is "language defined unit may not be
> recompile". 

Is this at the command line, or in some GUI? At the command line, the
gnat compiler is much more informative; for one thing, it tells you
what file it is compiling when it encounters the error.

> It should not need to recompile the language defined units when they
> are "with" by other units. If the name of the unit is the same as
> that of the language defined unit,will Gnat override the predefined
> one, or need to activate some specific flags manually?

The error message is saying that you cannot override language defined
units.

There is an option in gnat to let you do just that; consult the user
guide. But you should typically not be doing that.


Post the code you are trying to compile, so we know what you are
doing, then we can help more.

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-06-06 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-04 20:48 compile error Lin Z
2001-06-05  9:04 ` David C. Hoos, Sr.
2001-06-05 14:44   ` Lin
2001-06-06 21:27     ` Stephen Leake

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