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

Frank Fock Frank.Fock____t-online.de
Tue Oct 8 06:54:36 CEST 2002


Hi Nick,

Of course, this will be fixed in the next release
(available on Monday for download). Thanks for
reporting this!

Best regards,
Frank

Nick Woods wrote:
> 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