Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Invalid Prefix in selected component X" Error

2,250 views
Skip to first unread message

markp

unread,
Oct 20, 2005, 12:05:49 PM10/20/05
to
I am getting this error and my code seems to be pretty straightforward.
I have a package called "X" that has a function that returns a boolean.
>From another package, I have a line similar to :

Temp_Boolean := X.Procedure_A(Y => 5);

The error shows up on this line. I can call procedures from the package
with no problems.

Ludovic Brenta

unread,
Oct 20, 2005, 12:13:49 PM10/20/05
to
markp a écrit :

X is not a package, maybe you forgot the "with X;" or you have a
variable
named X that hides the package.

--
Ludovic Brenta.

Frank J. Lhota

unread,
Oct 20, 2005, 12:31:49 PM10/20/05
to

In the package where you are having this problem, is there a "with"
clause for package X?


--
"All things extant in this world,
Gods of Heaven, gods of Earth,
Let everything be as it should be;
Thus shall it be!"
- Magical chant from "Magical Shopping Arcade Abenobashi"

"Drizzle, Drazzle, Drozzle, Drome,
Time for the this one to come home!"
- Mr. Lizard from "Tutor Turtle"

markp

unread,
Oct 20, 2005, 12:34:16 PM10/20/05
to
Yes, I do have a with for the package X.

What is the error message trying to say?

Frank J. Lhota

unread,
Oct 20, 2005, 12:52:38 PM10/20/05
to
markp wrote:
> Yes, I do have a with for the package X.
>
> What is the error message trying to say?
>

Does this package declare another entity named X?

Georg Bauhaus

unread,
Oct 20, 2005, 1:03:08 PM10/20/05
to
markp wrote:
> Yes, I do have a with for the package X.
>
> What is the error message trying to say?
>

Try finding "selected_component" (with underscore) in the RM.

The error message is referring to this Ada language term. The message
might some day say something that can more easily be understood
if you don't know this. There has been a discussion on this on
the GCC mailing list.

markp

unread,
Oct 20, 2005, 1:15:40 PM10/20/05
to
No, there is no other entity called "x". I will lookup
"selected_component" in the RM.

markp

unread,
Oct 20, 2005, 1:28:59 PM10/20/05
to
Ok, found the problem. I did have another entitiy called X buried in
the code. Thanks for all of your help!

0 new messages