[AGENT++] Agent++ compile error on RH9
Ellis Corey
Corey.Ellis at comverse.com
Thu Jul 15 00:07:47 CEST 2004
I found the problem.
The first problem was solved when I enabled SNMP_V3 (I had originally turned
it off in the config_snmp_pp.h file) This gave the a problem with the
MAXLENGTH_GLOBALDATA definition. I see this will be fixed in the next
release.
The second issue is when you enable namespaces. I had to add using
namespace snmp_pp to the vacm_class.h file and also I added Snmp_pp::Oidx
for the class declaration.
Here are the exact changes made.
/opt/AGENT++/agent++/include/agent_pp/vacm_class.h
Added using namespace Snmp_pp;
Changed declaration
class OctetStr;
to
class Snmp_pp::OctetStr;
/opt/AGENT++/agent++/include/agent_pp/snmp_pp_ext.h
Added using namespace Snmp_pp;
Thanks for the help.
NOTE: I am also having problems compiling the examples, but I haven't
solved this yet.
-----Original Message-----
From: Jochen Katz [mailto:katz at agentpp.com]
Sent: Wednesday, July 14, 2004 5:03 PM
To: 'agentpp at agentpp.org'
Subject: Re: [AGENT++] Agent++ compile error on RH9
Hi,
the last time I checed on RH9 I didn't have any problems...
> g++ -g -Wall -DHEADER_DES_LOCL_H -c -o mib.o -I../include
> -I../../snmp++/include mib.cpp
> In file included from ../include/agent_pp/oidx_ptr.h:95,
> from ../include/agent_pp/oidx_defs.h:112,
> from ../include/agent_pp/map.h:109,
> from ../include/agent_pp/avl_map.h:115,
> from ../include/agent_pp/List.h:99,
> from ../include/agent_pp/mib.h:98,
> from mib.cpp:101:
> ../include/agent_pp/snmp_pp_ext.h:126: parse error before `{' token
snmp_pp_ext.h:126 is the following line:
class AGENTPP_DECL Oidx: public Oid {
So the compiler possibly doesn't know class Oid, although it should know
it. Can you add "-E" to the compiler command and send me the resulting
text file mib.o?
Regards,
Jochen
_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://agentpp.org/mailman/listinfo/agentpp
______________________________________________________________________
This email message has been scanned by PineApp Mail-Secure and has been
found clean.
More information about the AGENTPP
mailing list