Unix Technical Forum

Can't Compile on the HP 11 Platform

This is a discussion on Can't Compile on the HP 11 Platform within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> HELP! This code compiles fine on the Solaris and AIX platform but for some reasone fails on the HP ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 05:18 PM
Einat d
 
Posts: n/a
Default Can't Compile on the HP 11 Platform

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:air<RssLocalRepository ::ClsRssObject
*const,RssLocalRepository::ClsRssUser *>,long,const
std:air<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *> *,const
std:air<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
&,__rw::__rw_rb_tree_node<std::allocator<std:air <RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
>,std:air<RssLocalRepository::ClsRssObject

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

*const,RssLocalRepository::ClsRssUser
*>,RssLocalRepository::ClsRssObject
*,__rw::__select1st<std:air<RssLocalRepository:: ClsRssObject
*const,RssLocalRepository::ClsRssUser
*>,RssLocalRepository::ClsRssObject *> > >:perator =(const
__rw::__rw_tree_iter<std:air<RssLocalRepository: :ClsRssObject
*const,RssLocalRepository::ClsRssUser *>,long,const
std:air<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *> *,const
std:air<RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
&,__rw::__rw_rb_tree_node<std::allocator<std:air <RssLocalRepository::ClsRssObject
*,RssLocalRepository::ClsRssUser *>
>,std:air<RssLocalRepository::ClsRssObject

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

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

*const,RssLocalRepository::ClsRssUser
*>,RssLocalRepository::ClsRssObject
*,__rw::__select1st<std:air<RssLocalRepository:: ClsRssObject
*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???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 05:19 PM
Dennis Handly
 
Posts: n/a
Default Re: Can't Compile on the HP 11 Platform

Einat d (einat_dover@bmc.com) wrote:
: Here is the error I'm getting:
: Error 226: No appropriate function found for call of 'operator ='.
: m_connectionPoolIter = m_connectionPool.begin();
: The definition of the above variables is:
: typedef ConnectionPool::const_iterator ConnectionPoolConstIter;
: typedef multimap<ClsRssObject*, ClsRssUser* > ConnectionPool;
: ConnectionPool m_connectionPool;
: ConnectionPoolConstIter m_connectionPoolIter;
: aCC: HP ANSI C++ B3910B A.03.27

Creating a small test case (I defaulted the allocator) doesn't duplicate
your problem with either -AA or -AP. Using A.03.27 or the latest.

The latest version of aC++ is A.03.50.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com