C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't compile on HP 11 Platform

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Einat d
Guest





PostPosted: Thu Oct 30, 2003 12:55 pm    Post subject: Can't compile on HP 11 Platform Reply with quote



HELP!

This code compiles fine on the Solaris and AIX platform but for some
reasone fails on the HP 11 platform.

Here is the error I'm getting:

Error 226: "ClsGetAllRepository.cpp", line 107 # No appropriate
function found for call of 'operator ='. Last viable candidate was
"__rw::__rw_tree_iter<std::pair *const,RssLocalRepository::ClsRssUser *>,long,const
std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *> *,const
std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
&,__rw::__rw_rb_tree_node<std::allocator *,RssLocalRepository::ClsRssUser *>
Quote:
,std::pair<RssLocalRepository::ClsRssObject
*const,RssLocalRepository::ClsRssUser

*>,RssLocalRepository::ClsRssObject
*,__rw::__select1st<std::pair *const,RssLocalRepository::ClsRssUser
*>,RssLocalRepository::ClsRssObject *> > >
&__rw::__rw_tree_iter<std::pair *const,RssLocalRepository::ClsRssUser *>,long,const
std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *> *,const
std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
&,__rw::__rw_rb_tree_node<std::allocator *,RssLocalRepository::ClsRssUser *>
Quote:
,std::pair<RssLocalRepository::ClsRssObject
*const,RssLocalRepository::ClsRssUser

*>,RssLocalRepository::ClsRssObject
*,__rw::__select1st<std::pair *const,RssLocalRepository::ClsRssUser
*>,RssLocalRepository::ClsRssObject *> > >::operator =(const
__rw::__rw_tree_iter<std::pair *const,RssLocalRepository::ClsRssUser *>,long,const
std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *> *,const
std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
&,__rw::__rw_rb_tree_node<std::allocator *,RssLocalRepository::ClsRssUser *>
Quote:
,std::pair<RssLocalRepository::ClsRssObject
*const,RssLocalRepository::ClsRssUser

*>,RssLocalRepository::ClsRssObject
*,__rw::__select1st<std::pair *const,RssLocalRepository::ClsRssUser
*>,RssLocalRepository::ClsRssObject *> > > &)"
["/opt/aCC/include_std/rw/tree", line 153]. Argument of type 'class
__rw_tree_iter<std::pair *const,RssLocalRepository::ClsRssUser
*>,long,std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
*,std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
&,__rw::__rw_rb_tree_node<std::allocator *,RssLocalRepository::ClsRssUser *>
Quote:
,std::pair<RssLocalRepository::ClsRssObject
*const,RssLocalRepository::ClsRssUser

*>,RssLocalRepository::ClsRssObject
*,__rw::__select1st<std::pair *const,RssLocalRepository::ClsRssUser
*>,RssLocalRepository::ClsRssObject *> > >' could not be converted to
'const __rw::__rw_tree_iter<std::pair *const,RssLocalRepository::ClsRssUser *>,long,const
std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *> *,const
std::pair<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
&,__rw::__rw_rb_tree_node<std::allocator *,RssLocalRepository::ClsRssUser *>
Quote:
,std::pair<RssLocalRepository::ClsRssObject
*const,RssLocalRepository::ClsRssUser

*>,RssLocalRepository::ClsRssObject
*,__rw::__select1st<std::pair *const,RssLocalRepository::ClsRssUser
*>,RssLocalRepository::ClsRssObject *> > > &'.
m_connectionPoolIter = m_connectionPool.begin();
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


I'm getting the same error for other code lines as well.

The definition of the above variables is:
typedef ConnectionPool::const_iterator ConnectionPoolConstIter;
typedef multimap<ClsRssObject*,
ClsRssUser*,
RssObjectPtrCompare,
ConnectionAllocator > ConnectionPool;

ConnectionPool m_connectionPool;
ConnectionPoolConstIter m_connectionPoolIter;

Here is the output for "aCC -V":
aCC: HP ANSI C++ B3910B A.03.27

Can anyone help???

Back to top
Victor Bazarov
Guest





PostPosted: Thu Oct 30, 2003 3:52 pm    Post subject: Re: Can't compile on HP 11 Platform Reply with quote



"Einat d" <einat_dover (AT) bmc (DOT) com> wrote...
Quote:
This code

What code? You must have forgotten to post it...

Quote:
compiles fine on the Solaris and AIX platform but for some
reasone fails on the HP 11 platform.

Here is the error I'm getting:

Error 226: "ClsGetAllRepository.cpp", line 107 # No appropriate
function found for call of 'operator ='.
[...]

I'm getting the same error for other code lines as well.

The definition of the above variables is:
typedef ConnectionPool::const_iterator ConnectionPoolConstIter;

And how are we supposed to divine the definition of 'ConnectionPool'?

Quote:
typedef multimap<ClsRssObject*,
ClsRssUser*,
RssObjectPtrCompare,
ConnectionAllocator > ConnectionPool;

And what about RssObjectPtrCompare, ConnectionAllocator? We're not
mind readers, you know...

Quote:

ConnectionPool m_connectionPool;
ConnectionPoolConstIter m_connectionPoolIter;

Here is the output for "aCC -V":
aCC: HP ANSI C++ B3910B A.03.27

Can anyone help???

Have you tried HP Technical Support? What did they say?

Victor



Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.