agenpro2 trouble

Richard Coco racoco____sockeye.com
Tue Apr 1 22:19:51 CEST 2003


I am attempting to use agenpro2 to generate a sub-agent.
I believe I have correctly imported MIBs, ets properties, etc.

I am able to 'generate' without error.
However, I cannot successfully compile:

racoco: make -f Makefile.linux
rm -f  agent.o
g++ -g -Wall -c -o agent.o -I../include -I../../../include -I../../../../agent++/include -I../../../../snmp++/include -I../../../../snmp++/src agent.cpp
In file included from agent.cpp:37:
module_init.h: In function `void Agentpp::module_init (const OctetStr
&, Agentpp::SubAgentXMib *)':
module_init.h:15: no matching function for call to
`Agentpp::snmpv2_conf::snmpv2_conf (const OctetStr &,
Agentpp::SubAgentXMib *&)'
./include/snmpv2_conf.h:48: candidates are:
Agentpp::snmpv2_conf::snmpv2_conf ()
./include/snmpv2_conf.h:52:
Agentpp::snmpv2_conf::snmpv2_conf (const Agentpp::snmpv2_conf &)
module_init.h:16: no matching function for call to
`Agentpp::snmpv2_smi::snmpv2_smi (const OctetStr &,
Agentpp::SubAgentXMib *&)'
./include/snmpv2_smi.h:48: candidates are:
Agentpp::snmpv2_smi::snmpv2_smi ()
./include/snmpv2_smi.h:52:
Agentpp::snmpv2_smi::snmpv2_smi (const Agentpp::snmpv2_smi &)
make: *** [agent.o] Error 1
racoco:

I have imported the SNMPv2-CONF mib
Here is a piece of the generated file snmpv2_conf.h.


     45 class snmpv2_conf: public MibGroup
     46 {
     47   public:
     48         snmpv2_conf();
     49         virtual ~snmpv2_conf() { }
     50 //--AgentGen BEGIN=snmpv2_conf
     51 //--AgentGen END
     52 };
     53


You can see it does not define a prototype for the
two constructors mentioned in the above compiler error message.

why not? What am I not doing right? What am i not understanding?

Any help is appreciated.


thanks,

- rich




More information about the AGENTPP mailing list