Parser-Error in own MIB

Bjoern.Schorre____RSBICK.rohde-schwarz.com Bjoern.Schorre____RSBICK.rohde-schwarz.com
Tue Mar 11 11:42:58 CET 2003


Hello,

If have got a parser error in a own mib generated with "AgentGen 1.8.3". The MIB
was generated for "Agent++ 3.5".
My Agent++-Version is 3.5.4.

Here is the commadn-line:

===================================================================

acapi at giraffe:~/snmp-agent/development/bsc_test/src > g++ -g -Wall -o agent -I
./include/ -I ../../../agent++/include/ -I ../../../snmp++/include/ -I
./../../snmp++/src/ test.cpp
In file included from test.cpp:4:
./include/xyz-name-mib.h:30: parse error before `{'
./include/xyz-name-mib.h:33: destructors must be member functions
./include/xyz-name-mib.h:33: virtual outside class declaration
./include/xyz-name-mib.h:38: parse error before `}'
test.cpp: In function `int main()':
test.cpp:33: warning: unused variable `class Abc t'
acapi at giraffe:~/snmp-agent/development/bsc_test/src >

===================================================================


The code from xyz-name-mib:

===================================================================

//
// AgentGen Standard v1.8.3  Copyright (C) Frank Fock, All rights reserved
//



//--AgentGen BEGIN=_BEGIN
//--AgentGen END


#ifndef _xyz_name_mib_h
#define _xyz_name_mib_h


#include <mib.h>

#include <snmp_textual_conventions.h>
#include <notification_originator.h>
#include <log.h>





//--AgentGen BEGIN=_INCLUDE
//--AgentGen END


class xyz_name_mib: public MibGroup
{
  public:
        xyz_name_mib();
        virtual ~xyz_name_mib() { }

//--AgentGen BEGIN=xyz_name_mib
//--AgentGen END

};

//--AgentGen BEGIN=_END
//--AgentGen END


/**
 * xyz_name_mib.h generated by AgentGen 1.8.3 for AGENT++v3.4
 * Fri Mar 07 09:32:21 CET 2003.
 */


#endif

===================================================================


The files are all in UNIX-format.
What's the error?


Hopefully
Bjoern Schorre









More information about the AGENTPP mailing list