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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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: *const,RssLocalRepository::ClsRssUser *>,long,const std: *,RssLocalRepository::ClsRssUser *> *,const std: *,RssLocalRepository::ClsRssUser *> &,__rw::__rw_rb_tree_node<std::allocator<std: *,RssLocalRepository::ClsRssUser *> >,std: *const,RssLocalRepository::ClsRssUser *>,RssLocalRepository::ClsRssObject *,__rw::__select1st<std: *const,RssLocalRepository::ClsRssUser *>,RssLocalRepository::ClsRssObject *> > > &__rw::__rw_tree_iter<std: *const,RssLocalRepository::ClsRssUser *>,long,const std: *,RssLocalRepository::ClsRssUser *> *,const std: *,RssLocalRepository::ClsRssUser *> &,__rw::__rw_rb_tree_node<std::allocator<std: *,RssLocalRepository::ClsRssUser *> >,std: *const,RssLocalRepository::ClsRssUser *>,RssLocalRepository::ClsRssObject *,__rw::__select1st<std: *const,RssLocalRepository::ClsRssUser *>,RssLocalRepository::ClsRssObject *> > >: __rw::__rw_tree_iter<std: *const,RssLocalRepository::ClsRssUser *>,long,const std: *,RssLocalRepository::ClsRssUser *> *,const std: *,RssLocalRepository::ClsRssUser *> &,__rw::__rw_rb_tree_node<std::allocator<std: *,RssLocalRepository::ClsRssUser *> >,std: *const,RssLocalRepository::ClsRssUser *>,RssLocalRepository::ClsRssObject *,__rw::__select1st<std: *const,RssLocalRepository::ClsRssUser *>,RssLocalRepository::ClsRssObject *> > > &)" ["/opt/aCC/include_std/rw/tree", line 153]. Argument of type 'class __rw_tree_iter<std: *const,RssLocalRepository::ClsRssUser *>,long,std: *,RssLocalRepository::ClsRssUser *> *,std: *,RssLocalRepository::ClsRssUser *> &,__rw::__rw_rb_tree_node<std::allocator<std: *,RssLocalRepository::ClsRssUser *> >,std: *const,RssLocalRepository::ClsRssUser *>,RssLocalRepository::ClsRssObject *,__rw::__select1st<std: *const,RssLocalRepository::ClsRssUser *>,RssLocalRepository::ClsRssObject *> > >' could not be converted to 'const __rw::__rw_tree_iter<std: *const,RssLocalRepository::ClsRssUser *>,long,const std: *,RssLocalRepository::ClsRssUser *> *,const std: *,RssLocalRepository::ClsRssUser *> &,__rw::__rw_rb_tree_node<std::allocator<std: *,RssLocalRepository::ClsRssUser *> >,std: *const,RssLocalRepository::ClsRssUser *>,RssLocalRepository::ClsRssObject *,__rw::__select1st<std: *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??? |
| ||||
| 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. |