[AGENT++] AgentX++ compile error

Frank Fock fock at agentpp.com
Thu Oct 21 21:36:04 CEST 2004


Please check the include paths. By default AgentX++ needs to be unpacked
in the same directory as the snmp++ and agent++ directories.

Hope this helps.

Best regards,
Frank

Jiann-Ming Su wrote:

>I was able to successfully compile snmp++v3.2.14 and agent++v3.5.21 on
>my Fedora Core 1 system using g++ 3.3.2.  But, when I try to compile
>agentX++v1.4.10c, I get the errors listed below.  What am I doing
>wrong?  Thanks for any tips.
>
># make -f Makefile.linux
>rm -f  agentx.o
>g++  -g -Wall  -c -o agentx.o -I../include -I../../agent++/include
>-I../../snmp++/include agentx.cpp
>In file included from ../include/agentx_pp/agentx.h:28,
>                 from agentx.cpp:46:
>../include/agentx_pp/agentx_pdu.h:36: error: syntax error before `{' token
>../include/agentx_pp/agentx_pdu.h:47: error: syntax error before `const'
>../include/agentx_pp/agentx_pdu.h:52: error: syntax error before `const'
>../include/agentx_pp/agentx_pdu.h:58: error: syntax error before `const'
>../include/agentx_pp/agentx_pdu.h:63: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:63: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:63: error: `Agentpp::AgentXOctets& 
>   Agentpp::operator+=(...)' must have an argument of class or enumerated type
>../include/agentx_pp/agentx_pdu.h:63: error: `Agentpp::AgentXOctets& 
>   Agentpp::operator+=(...)' must take exactly two arguments
>../include/agentx_pp/agentx_pdu.h:68: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:68: error: `Agentpp::AgentXOctets& 
>   Agentpp::operator+=(unsigned char)' must have an argument of class or 
>   enumerated type
>../include/agentx_pp/agentx_pdu.h:68: error: `Agentpp::AgentXOctets& 
>   Agentpp::operator+=(unsigned char)' must take exactly two arguments
>../include/agentx_pp/agentx_pdu.h:78: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:86: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:109: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:123: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:149: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:163: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:178: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:193: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:212: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:224: error: `SnmpSyntax' was not declared in 
>   this scope
>../include/agentx_pp/agentx_pdu.h:224: error: syntax error before `,' token
>../include/agentx_pp/agentx_pdu.h:224: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:242: error: syntax error before `*' token
>../include/agentx_pp/agentx_pdu.h:253: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:253: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:268: error: syntax error before `(' token
>../include/agentx_pp/agentx_pdu.h:288: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:298: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:311: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:320: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:336: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:337: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:350: error: syntax error before `)' token
>../include/agentx_pp/agentx_pdu.h: In member function `virtual int 
>   AgentXRegion::is_range() const':
>../include/agentx_pp/agentx_pdu.h:321: error: `subid' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h:321: error: (Each undeclared identifier is 
>   reported only once for each function it appears in.)
>../include/agentx_pp/agentx_pdu.h: In member function `void 
>   AgentXRegion::set_single(int)':
>../include/agentx_pp/agentx_pdu.h:341: error: `single' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:352: error: ISO C++ forbids defining types 
>   within return type
>../include/agentx_pp/agentx_pdu.h:352: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:360: error: syntax error before `)' token
>../include/agentx_pp/agentx_pdu.h:362: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:370: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h: In function `void set_upper(...)':
>../include/agentx_pp/agentx_pdu.h:370: error: `range' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h:370: error: `o' undeclared (first use this 
>   function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:378: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:380: error: syntax error before `protected'
>../include/agentx_pp/agentx_pdu.h:382: error: `u_char subid' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:383: error: `int single' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:384: error: syntax error before `}' token
>../include/agentx_pp/agentx_pdu.h:416: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:432: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:499: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:510: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:556: error: syntax error before `)' token
>../include/agentx_pp/agentx_pdu.h: In member function `void 
>   AgentXSearchRange::set_include(int)':
>../include/agentx_pp/agentx_pdu.h:488: error: `include' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: In member function `void 
>   AgentXSearchRange::set_reference(int)':
>../include/agentx_pp/agentx_pdu.h:540: error: `reference' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:564: error: ISO C++ forbids defining types 
>   within return type
>../include/agentx_pp/agentx_pdu.h:564: error: syntax error before `(' token
>../include/agentx_pp/agentx_pdu.h:568: error: `int include' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:569: error: `int reference' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:570: error: syntax error before `}' token
>../include/agentx_pp/agentx_pdu.h:574: error: `List' is not a template
>../include/agentx_pp/agentx_pdu.h:574: error: explicit instantiation of 
>   non-template type `<type error>'
>../include/agentx_pp/agentx_pdu.h:577: error: syntax error before `{' token
>../include/agentx_pp/agentx_pdu.h:593: error: syntax error before `int'
>../include/agentx_pp/agentx_pdu.h:598: error: syntax error before `const'
>../include/agentx_pp/agentx_pdu.h:603: error: syntax error before `*' token
>../include/agentx_pp/agentx_pdu.h:609: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h: In function `void set_version(unsigned char)
>   ':
>../include/agentx_pp/agentx_pdu.h:609: error: `version' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:610: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:610: error: non-member function `u_char 
>   get_version()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:615: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:615: error: non-member function `u_char 
>   get_flags()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_char get_flags()':
>../include/agentx_pp/agentx_pdu.h:615: error: `flags' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:616: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:621: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:621: error: non-member function `u_int 
>   get_session_id()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_int get_session_id()':
>../include/agentx_pp/agentx_pdu.h:621: error: `session_id' undeclared (first 
>   use this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:622: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:628: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:628: error: non-member function `u_int 
>   get_transaction_id()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_int get_transaction_id()':
>../include/agentx_pp/agentx_pdu.h:628: error: `get_request_id' undeclared 
>   (first use this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:630: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h: In function `void 
>   set_transaction_id(unsigned int)':
>../include/agentx_pp/agentx_pdu.h:630: error: `set_request_id' undeclared 
>   (first use this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:635: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:635: error: non-member function `u_int 
>   get_packet_id()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_int get_packet_id()':
>../include/agentx_pp/agentx_pdu.h:635: error: `packet_id' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:636: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:641: error: syntax error before `(' token
>../include/agentx_pp/agentx_pdu.h:642: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:643: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h: In function `void set_context(...)':
>../include/agentx_pp/agentx_pdu.h:643: error: `context' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h:643: error: `s' undeclared (first use this 
>   function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:645: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:650: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:650: error: non-member function `u_char 
>   get_timeout()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_char get_timeout()':
>../include/agentx_pp/agentx_pdu.h:650: error: `timeout' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:651: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:656: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:656: error: non-member function `u_char 
>   get_priority()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_char get_priority()':
>../include/agentx_pp/agentx_pdu.h:656: error: `priority' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:657: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:662: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:662: error: non-member function `u_char 
>   get_reason()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_char get_reason()':
>../include/agentx_pp/agentx_pdu.h:662: error: `reason' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:663: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:668: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:668: error: non-member function `AgentXRegion 
>   get_region()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:668: error: semicolon missing after 
>   declaration of `class AgentXRegion'
>../include/agentx_pp/agentx_pdu.h: In function `int get_region()':
>../include/agentx_pp/agentx_pdu.h:668: error: `region' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:669: error: syntax error before `&' token
>../include/agentx_pp/agentx_pdu.h:671: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h: In function `int set_region(...)':
>../include/agentx_pp/agentx_pdu.h:671: error: `sid' undeclared (first use this 
>   function)
>../include/agentx_pp/agentx_pdu.h:671: error: `u' undeclared (first use this 
>   function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:673: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:679: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:679: error: non-member function `int 
>   get_range_count()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `int get_range_count()':
>../include/agentx_pp/agentx_pdu.h:679: error: `ranges' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: In function `AgentXSearchRange* range(int)':
>../include/agentx_pp/agentx_pdu.h:680: error: `AgentXSearchRange* range(int)' 
>   used prior to declaration
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:682: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:682: error: non-member function `
>   AgentXSearchRange get_range(int)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:682: error: semicolon missing after 
>   declaration of `class AgentXSearchRange'
>../include/agentx_pp/agentx_pdu.h:684: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:686: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:688: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:689: error: syntax error before `(' token
>../include/agentx_pp/agentx_pdu.h:695: error: non-member function `u_int 
>   get_non_repeaters()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_int get_non_repeaters()':
>../include/agentx_pp/agentx_pdu.h:695: error: `get_error_status' undeclared 
>   (first use this function)
>../include/agentx_pp/agentx_pdu.h: In function `void set_non_repeaters(unsigned 
>   int)':
>../include/agentx_pp/agentx_pdu.h:697: error: `set_error_status' undeclared 
>   (first use this function)
>../include/agentx_pp/agentx_pdu.h: In function `void inc_non_repeaters()':
>../include/agentx_pp/agentx_pdu.h:699: error: `set_error_status' undeclared 
>   (first use this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:704: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:704: error: non-member function `u_int 
>   get_max_repetitions()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_int get_max_repetitions()':
>../include/agentx_pp/agentx_pdu.h:704: error: `get_error_index' undeclared 
>   (first use this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:705: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h: In function `void 
>   set_max_repetitions(unsigned int)':
>../include/agentx_pp/agentx_pdu.h:705: error: `set_error_index' undeclared 
>   (first use this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:727: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:727: error: non-member function `time_t 
>   get_timestamp()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `time_t get_timestamp()':
>../include/agentx_pp/agentx_pdu.h:727: error: `timestamp' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:728: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:733: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:733: error: non-member function `time_t 
>   get_time()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `time_t get_time()':
>../include/agentx_pp/agentx_pdu.h:733: error: `sysUpTime' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:734: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:736: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:736: error: non-member function `int 
>   network_byte_order()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `int network_byte_order()':
>../include/agentx_pp/agentx_pdu.h:736: error: `byteOrder' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:738: error: non-member function `u_char 
>   get_agentx_type()' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h: In function `u_char get_agentx_type()':
>../include/agentx_pp/agentx_pdu.h:738: error: `ax_type' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_pdu.h: At global scope:
>../include/agentx_pp/agentx_pdu.h:741: error: syntax error before `)' token
>../include/agentx_pp/agentx_pdu.h:742: error: syntax error before `)' token
>../include/agentx_pp/agentx_pdu.h:747: error: syntax error before `*' token
>../include/agentx_pp/agentx_pdu.h:748: error: `AgentXPeer' was not declared in 
>   this scope
>../include/agentx_pp/agentx_pdu.h:748: error: `p' was not declared in this 
>   scope
>../include/agentx_pp/agentx_pdu.h:748: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:748: error: variable or field `set_peer' 
>   declared void
>../include/agentx_pp/agentx_pdu.h:748: error: syntax error before `{' token
>../include/agentx_pp/agentx_pdu.h:753: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:753: error: `AgentXPdu& operator=(const 
>   AgentXPdu&)' must be a nonstatic member function
>../include/agentx_pp/agentx_pdu.h:753: error: `AgentXPdu& operator=(const 
>   AgentXPdu&)' must take exactly two arguments
>../include/agentx_pp/agentx_pdu.h:758: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:758: error: non-member function `int 
>   operator<(const AgentXPdu&)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:758: error: `int operator<(const AgentXPdu&)' 
>   must take exactly two arguments
>../include/agentx_pp/agentx_pdu.h:759: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:759: error: non-member function `int 
>   operator==(const AgentXPdu&)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:759: error: `int operator==(const AgentXPdu&)
>   ' must take exactly two arguments
>../include/agentx_pp/agentx_pdu.h:760: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:760: error: non-member function `int 
>   operator>(const AgentXPdu&)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:760: error: `int operator>(const AgentXPdu&)' 
>   must take exactly two arguments
>../include/agentx_pp/agentx_pdu.h:765: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:765: error: syntax error before `)' token
>../include/agentx_pp/agentx_pdu.h:765: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:765: error: non-member function `int 
>   encode(...)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:766: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:766: error: syntax error before `)' token
>../include/agentx_pp/agentx_pdu.h:766: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:772: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:774: error: syntax error before `protected'
>../include/agentx_pp/agentx_pdu.h:778: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:778: error: syntax error before `,' token
>../include/agentx_pp/agentx_pdu.h:778: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:778: error: non-member function `void 
>   encode_header(...)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:779: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:779: error: syntax error before `)' token
>../include/agentx_pp/agentx_pdu.h:779: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:779: error: non-member function `void 
>   encode_ranges(...)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:780: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:780: error: syntax error before `,' token
>../include/agentx_pp/agentx_pdu.h:780: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:781: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:781: error: syntax error before `,' token
>../include/agentx_pp/agentx_pdu.h:782: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:782: error: non-member function `void 
>   encode_region(...)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:783: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:783: error: syntax error before `,' token
>../include/agentx_pp/agentx_pdu.h:784: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:784: error: non-member function `AgentXRegion 
>   decode_region(...)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:785: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:785: error: syntax error before `,' token
>../include/agentx_pp/agentx_pdu.h:786: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:786: error: non-member function `void 
>   encode_vbs(...)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:787: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:787: error: syntax error before `,' token
>../include/agentx_pp/agentx_pdu.h:787: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:788: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:788: error: syntax error before `,' token
>../include/agentx_pp/agentx_pdu.h:789: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:789: error: non-member function `void 
>   encode_oids(...)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:790: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:790: error: syntax error before `,' token
>../include/agentx_pp/agentx_pdu.h:790: error: virtual outside class declaration
>../include/agentx_pp/agentx_pdu.h:792: error: syntax error before `(' token
>../include/agentx_pp/agentx_pdu.h:794: error: `u_char version' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:795: error: `u_int session_id' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:796: error: `u_int packet_id' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:798: error: `u_char ax_type' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:799: error: `u_char flags' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:800: error: 'OctetStr' is used as a type, but 
>   is not defined as a type.
>../include/agentx_pp/agentx_pdu.h:801: error: `u_char timeout' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:802: error: `u_char priority' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:803: error: `u_char reason' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:804: error: `AgentXRegion region' used prior 
>   to declaration
>../include/agentx_pp/agentx_pdu.h:806: error: 'List' is used as a type, but is 
>   not defined as a type.
>../include/agentx_pp/agentx_pdu.h:813: error: `time_t timestamp' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:814: error: `u_int sysUpTime' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:816: error: `int byteOrder' used prior to 
>   declaration
>../include/agentx_pp/agentx_pdu.h:818: error: syntax error before `*' token
>../include/agentx_pp/agentx_pdu.h:823: error: `AgentXOctets' was not declared 
>   in this scope
>../include/agentx_pp/agentx_pdu.h:823: error: syntax error before `)' token
>../include/agentx_pp/agentx_pdu.h:823: error: non-member function `int 
>   encode_open_pdu(...)' cannot have `const' method qualifier
>../include/agentx_pp/agentx_pdu.h:825: error: syntax error before `}' token
>In file included from ../include/agentx_pp/agentx_session.h:27,
>                 from ../include/agentx_pp/agentx.h:31,
>                 from agentx.cpp:46:
>../include/agentx_pp/agentx_reg.h:56: error: syntax error before `&' token
>../include/agentx_pp/agentx_reg.h:91: error: 'OctetStr' is used as a type, but 
>   is not defined as a type.
>In file included from ../include/agentx_pp/agentx.h:31,
>                 from agentx.cpp:46:
>../include/agentx_pp/agentx_session.h:65: error: syntax error before `)' token
>../include/agentx_pp/agentx_session.h:67: error: semicolon missing after 
>   declaration of `Agentpp::AgentXSession'
>../include/agentx_pp/agentx_session.h: In member function `int 
>   Agentpp::AgentXSession::get_state() const':
>../include/agentx_pp/agentx_session.h:53: error: `state' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_session.h: In member function `u_int 
>   Agentpp::AgentXSession::get_id() const':
>../include/agentx_pp/agentx_session.h:56: error: `sessionID' undeclared (first 
>   use this function)
>../include/agentx_pp/agentx_session.h: In member function `int 
>   Agentpp::AgentXSession::get_byte_order() const':
>../include/agentx_pp/agentx_session.h:59: error: `networkByteOrder' undeclared 
>   (first use this function)
>../include/agentx_pp/agentx_session.h: In member function `u_char 
>   Agentpp::AgentXSession::get_timeout() const':
>../include/agentx_pp/agentx_session.h:62: error: `defaultTimeout' undeclared 
>   (first use this function)
>../include/agentx_pp/agentx_session.h: In member function `Agentpp::Oidx 
>   Agentpp::AgentXSession::get_oid() const':
>../include/agentx_pp/agentx_session.h:64: error: `id' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_session.h: At global scope:
>../include/agentx_pp/agentx_session.h:67: error: ISO C++ forbids defining types 
>   within return type
>../include/agentx_pp/agentx_session.h:67: error: two or more data types in 
>   declaration of `set_peer'
>../include/agentx_pp/agentx_session.h:67: error: semicolon missing after 
>   declaration of `class Agentpp::AgentXSession'
>../include/agentx_pp/agentx_session.h: In function `int Agentpp::set_peer(const 
>   Agentpp::AgentXPeer&)':
>../include/agentx_pp/agentx_session.h:67: error: `peer' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_session.h: At global scope:
>../include/agentx_pp/agentx_session.h:68: error: non-member function `
>   Agentpp::AgentXPeer Agentpp::get_peer()' cannot have `const' method 
>   qualifier
>../include/agentx_pp/agentx_session.h:72: error: syntax error before `&' token
>../include/agentx_pp/agentx_session.h: In function `void 
>   Agentpp::add_agent_caps(...)':
>../include/agentx_pp/agentx_session.h:73: error: `sysORIDs' undeclared (first 
>   use this function)
>../include/agentx_pp/agentx_session.h:73: error: `oid' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx_session.h:73: error: `c' undeclared (first use this 
>   function)
>../include/agentx_pp/agentx_session.h: At global scope:
>../include/agentx_pp/agentx_session.h:74: error: syntax error before `&' token
>../include/agentx_pp/agentx_session.h:79: error: `Agentpp::AgentXSession& 
>   Agentpp::operator=(const Agentpp::AgentXSession&)' must be a nonstatic 
>   member function
>../include/agentx_pp/agentx_session.h:79: error: `Agentpp::AgentXSession& 
>   Agentpp::operator=(const Agentpp::AgentXSession&)' must take exactly two 
>   arguments
>../include/agentx_pp/agentx_session.h: In function `void 
>   Agentpp::inc_timeouts()':
>../include/agentx_pp/agentx_session.h:81: error: `consecutiveTimeouts' 
>   undeclared (first use this function)
>../include/agentx_pp/agentx_session.h: At global scope:
>../include/agentx_pp/agentx_session.h:87: error: `Agentpp::AgentXPeer 
>   Agentpp::peer' used prior to declaration
>../include/agentx_pp/agentx_session.h:89: error: syntax error before `protected
>   '
>../include/agentx_pp/agentx_session.h:92: error: `int Agentpp::networkByteOrder
>   ' used prior to declaration
>../include/agentx_pp/agentx_session.h:93: error: `u_char 
>   Agentpp::defaultTimeout' used prior to declaration
>../include/agentx_pp/agentx_session.h:95: error: `int Agentpp::state' used 
>   prior to declaration
>../include/agentx_pp/agentx_session.h:97: error: `Agentpp::Oidx Agentpp::id' 
>   used prior to declaration
>../include/agentx_pp/agentx_session.h:98: error: 'OctetStr' is used as a type, 
>   but is not defined as a type.
>../include/agentx_pp/agentx_session.h:100: error: `Agentpp::List<Agentpp::Vbx> 
>   Agentpp::sysORIDs' used prior to declaration
>../include/agentx_pp/agentx_session.h:102: error: `u_char 
>   Agentpp::consecutiveTimeouts' used prior to declaration
>../include/agentx_pp/agentx_session.h:115: error: `AgentXSession' was not 
>   declared in this scope
>../include/agentx_pp/agentx_session.h:115: error: `List' is not a template
>../include/agentx_pp/agentx_session.h:115: error: explicit instantiation of 
>   non-template type `<type error>'
>../include/agentx_pp/agentx_session.h:119: error: syntax error before `{' token
>../include/agentx_pp/agentx_session.h:122: error: destructors must be member 
>   functions
>../include/agentx_pp/agentx_session.h:122: error: virtual outside class 
>   declaration
>../include/agentx_pp/agentx_session.h:138: error: type specifier omitted for 
>   parameter `AgentXSession'
>../include/agentx_pp/agentx_session.h:138: error: syntax error before `&' token
>../include/agentx_pp/agentx_session.h:138: error: virtual outside class 
>   declaration
>../include/agentx_pp/agentx_session.h:150: error: syntax error before `*' token
>../include/agentx_pp/agentx_session.h:161: error: syntax error before `*' token
>../include/agentx_pp/agentx_session.h:180: error: syntax error before `&' token
>../include/agentx_pp/agentx_session.h:182: error: virtual outside class 
>   declaration
>../include/agentx_pp/agentx_session.h:190: error: `AgentXSession' was not 
>   declared in this scope
>../include/agentx_pp/agentx_session.h:190: error: syntax error before `)' token
>../include/agentx_pp/agentx_session.h: In function `void clear()':
>../include/agentx_pp/agentx_session.h:196: error: `sessions' undeclared (first 
>   use this function)
>../include/agentx_pp/agentx_session.h: At global scope:
>../include/agentx_pp/agentx_session.h:205: error: syntax error before `&' token
>../include/agentx_pp/agentx_session.h:205: error: virtual outside class 
>   declaration
>../include/agentx_pp/agentx_session.h:220: error: `AgentXSession' was not 
>   declared in this scope
>../include/agentx_pp/agentx_session.h:220: error: syntax error before `*' token
>../include/agentx_pp/agentx_session.h:234: error: `AgentXSession' was not 
>   declared in this scope
>../include/agentx_pp/agentx_session.h:234: error: syntax error before `*' token
>../include/agentx_pp/agentx_session.h:240: error: `AgentXSession' was not 
>   declared in this scope
>../include/agentx_pp/agentx_session.h:240: error: 'List' is used as a type, but 
>   is not defined as a type.
>../include/agentx_pp/agentx_session.h:241: error: syntax error before `}' token
>In file included from agentx.cpp:46:
>../include/agentx_pp/agentx.h:105: error: syntax error before `&' token
>../include/agentx_pp/agentx.h:295: error: 'OctetStr' is used as a type, but is 
>   not defined as a type.
>../include/agentx_pp/agentx.h:375: error: syntax error before `&' token
>../include/agentx_pp/agentx.h:399: error: syntax error before `&' token
>../include/agentx_pp/agentx.h:488: error: 'UdpAddress' is used as a type, but 
>   is not defined as a type.
>../include/agentx_pp/agentx.h: In member function `void 
>   Agentpp::AgentXSlave::set_master_address(...)':
>../include/agentx_pp/agentx.h:400: error: `masterAddress' undeclared (first use 
>   this function)
>../include/agentx_pp/agentx.h:400: error: `addr' undeclared (first use this 
>   function)
>In file included from ../include/agentx_pp/agentx_master.h:29,
>                 from ../include/agentx_pp/agentx_mib.h:32,
>                 from agentx.cpp:47:
>../include/agentx_pp/agentx_request.h: At global scope:
>../include/agentx_pp/agentx_request.h:38: error: type specifier omitted for 
>   parameter `OctetStr'
>../include/agentx_pp/agentx_request.h:38: error: syntax error before `,' token
>../include/agentx_pp/agentx_request.h:43: error: `OctetStr' was not declared in 
>   this scope
>../include/agentx_pp/agentx_request.h:43: error: syntax error before `,' token
>../include/agentx_pp/agentx_request.h:44: error: `virtual int 
>   Agentpp::NoVacm::isAccessAllowed(...)' and `virtual int 
>   Agentpp::NoVacm::isAccessAllowed(...)' cannot be overloaded
>../include/agentx_pp/agentx_request.h: In member function `virtual short 
>   unsigned int Agentpp::AgentXRequest::get_agentx_type()':
>../include/agentx_pp/agentx_request.h:94: error: `get_agentx_type' undeclared 
>   (first use this function)
>In file included from ../include/agentx_pp/agentx_master.h:31,
>                 from ../include/agentx_pp/agentx_mib.h:32,
>                 from agentx.cpp:47:
>../include/agentx_pp/agentx_index.h: At global scope:
>../include/agentx_pp/agentx_index.h:35: error: syntax error before `&' token
>../include/agentx_pp/agentx_index.h:33: error: base `Agentpp::MibStaticEntry' 
>   with only non-default constructor in class without a constructor
>../include/agentx_pp/agentx_index.h:37: error: ISO C++ forbids defining types 
>   within return type
>../include/agentx_pp/agentx_index.h:37: error: semicolon missing after 
>   declaration of `class Agentpp::AgentXIndexEntry'
>../include/agentx_pp/agentx_index.h: In function `int 
>   Agentpp::AgentXIndexEntry(const Agentpp::AgentXIndexEntry&)':
>../include/agentx_pp/agentx_index.h:37: error: only constructors take base 
>   initializers
>../include/agentx_pp/agentx_index.h:38: confused by earlier errors, bailing out
>make: *** [agentx.o] Error 1
>
>  
>





More information about the AGENTPP mailing list