problem with agent++ example : proxy

rohit rohitprasad_ak____infy.com
Tue Sep 25 13:25:40 CEST 2001


im having problems compiling the "proxy" example in agent++.
i dont want to have snmp v3, so i have undefined it in "config.h" file.
but in "snmp_proxy.cpp" line 226 there is a call to method snmp_community_mib::add_public();
but this call is made outside the ifdef, endif loop.

the code for snmp_community_mib is entirely inside a #ifdef _SNMPv3 and #endif
thus i get a compilation error as :
"snmp_proxy.cpp", line 226: Error: snmp_community_mib is not defined.
"snmp_proxy.cpp", line 226: Error: :: is not a class name as required for a qualifer.
"snmp_proxy.cpp", line 226: Error: The function add_public must have a prototype.
3 Error(s) detected.
make: *** [snmp_proxy.o] Error 3

and this is after i expilictly inculde "snmp_community_mib.h"

what should i do ?
should change the agent++ code or the proxy example code ?
if so, what and where ?

thanks,
rohit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20010925/3bf320cc/attachment.htm 


More information about the AGENTPP mailing list