Operating System - HP-UX
1753434 Members
4575 Online
108793 Solutions
New Discussion юеВ

Re: Compilation Error in HP-UX 11.31

 
SOLVED
Go to solution
Rkambala
Occasional Advisor

Compilation Error in HP 11v3-

Hello,

Getting below compilation error in HP11v3 which goes through fine in HP 11v2 version.
Kindly Help.

Thanks,
Ravindra

"Test.H", line 246: error #2330-D: "Collection &Collection::operator=(const Collection &) [with T=Test]"
(declared at line 142 of "HP-UX-B.11.31-ia64/inc/Collection.H") is inaccessible
NiSimOrderList _simOrderList;
^
detected during implicit generation of "Test
&Test::operator=(const Test &)" at line 344 of "Test.C"

1 error detected in the compilation of "Test.C".

-----"Test.C"-------------
void Test::GetList(NiSimOrderList& list) const
{

Test *rec = _simOrderList[i];
Test *recCopy;
recCopy = new Test();
*recCopy = *rec; ------Line 344
}

-----Collection.H-----
private:

// Hidden functions
Collection &operator = (const Collection &); ---------Line 142
};


aCC: HP C/aC++ B3910B A.06.25 [Nov 30 2009]
6 REPLIES 6
Dennis Handly
Acclaimed Contributor
Solution

Re: Compilation Error in HP-UX 11.31

>which goes through fine in HP 11iv2 version.

What aC++ version do you have on 11.23?

It looks like the compiler was fixed to give you an error on a private copy assignment operator.

Why are you using multiple statements, why not use initialization?
Test *recCopy = new Test(*rec);

Rkambala
Occasional Advisor

Re: Compilation Error in HP 11v3-

Hello Dennis,

The compiler version used in 11.23 was as below:

aCC: HP aC++/ANSI C B3910B A.06.10 [Mar 22 2006]

Thanks,
Ravi
Steve Post
Trusted Contributor

Re: Compilation Error in HP 11v3-

I don't have an answer for you except to search for entries similar to your error using the forum search.

But I might know why you haven't had much of a response.

I've gotten into a habit of checking how many responses have been assigned points by this author before I bother to try to help. This is because it looks like an author of a question that does not assign points seems to not really care about any answers. And if they don't care to read answers to questions... why would I bother to write?

For THIS response I would assign 0 points. It didn't really help at all, but at least
points are assigned.

Steve



From the main forum page.

What is the member point system?

Member status is established using a points-based feedback mechanism. Authors of original questions "grade" (on a Scale from 1-10) other members who reply to their questions. The higher the grade the more effective the response was in solving the question. This feature is HP's way of turning the reward mechanism over to the community. Each response to a question is eligible to receive feedback for its success in solving the user's problems.


I've read the replies to my question and I see "unassigned" next to each reply. What does that mean?

If you were to login, the term "unassigned" would turn into a dropdown menu of points. The points are used to rate the repliers to your question. Points range from 1-10. Every reply deserves recognition. Another member has taken the time to try and help you, so please take the time to assign them a point value based on the value of their reply. See "How Do I Assign Points".

Dennis Handly
Acclaimed Contributor

Re: Compilation Error in HP-UX 11.31

>Steve: I don't have an answer for you except to search for entries similar to your error using the forum search.

I thought I answered Ravindra question? I seriously doubt you'll find an answer by searching the forum for this complex C++ accessibility issue.

Rkambala
Occasional Advisor

Re: Compilation Error in HP 11v3-

Dennis,

Your answer helped indeed. THanks for your time.

Cheers,
Ravindra
Steve Post
Trusted Contributor

Re: Compilation Error in HP 11v3-

Dennis.
Oh. But my response was about the points.
I see he still didn't assign points. I was looking for that zero.
The word "UNassigned" still exists.

I'll stop typing now.