Build Warning on Solaris with the Forte C++ 6 Update 2

Nick Woods nwoods____pivia.com
Tue Oct 8 03:06:40 CEST 2002


I receive the following warning when compiling the latest agent++ (3.5.6) library with the latest snmp++ (3.2.1b) library.

> "/pivia/toolroot_3/toolroot_3_r/include/agent++/snmp_pp_ext.h"
> , line 877: Warning: Agentpp::Opaque::get_syntax hides the 
> virtual function OctetStr::get_syntax() const.
> 1 Warning(s) detected.

The problem is that OctetStr::get_syntax from SNMP++ is a const method while Opaque::get_syntax from Agent++ isn't and class Opaque derives from class OctetStr.  GCC on Linux at doesn't seem to complain about this even though the signature for these functions seems to be different.  Changing it to const in Agent++ fixes the problem.  I thought you might like to include this or update the appropriate functions in your next release.

Nick



More information about the AGENTPP mailing list