[AGENT++] snmp++ noob question

Jochen Katz katz at agentpp.com
Tue Aug 24 20:37:59 CEST 2004


Hi,


> I'm trying to extend the Snmp class, and can't get a compile -

> class SnmpQueryBase : public Snmp
> {
>    SnmpQueryBase(int &stat);
> }

> SnmpQueryBase::SnmpQueryBase(int &stat) :  Snmp(stat)

try to find the fix ;-)

class SnmpQueryBase : public Snmp
{
    SnmpQueryBase(int &stat);
};


SnmpQueryBase::SnmpQueryBase(int &stat) :  Snmp(stat) {};





































You forgot a ";" at the end of the class definition...

| error: ISO C++ forbids defining types within return type
| error: return type specification for constructor invalid


Regards,
   Jochen



More information about the AGENTPP mailing list