[AGENT++] example application sending traps
Alona Rossen
arossen at opentext.com
Wed Feb 8 18:05:26 CET 2012
Hi,
I am trying to build example/atm_mib test application and I receive the following error at link time:
1>Linking...
1>agent.obj : error LNK2001: unresolved external symbol "public: static class snmpCommunityEntry * snmpCommunityEntry::instance" (?instance at snmpCommunityEntry@@2PAV1 at A)
1>agent.obj : error LNK2001: unresolved external symbol "protected: static class LogEntry * DefaultLog::entry" (?entry at DefaultLog@@1PAVLogEntry@@A)
1>agentpp_notifytest_mib.obj : error LNK2001: unresolved external symbol "protected: static class LogEntry * DefaultLog::entry" (?entry at DefaultLog@@1PAVLogEntry@@A)
1>agentpp_notifytest_mib.obj : error LNK2001: unresolved external symbol "public: static class Mib * Mib::instance" (?instance at Mib@@2PAV1 at A)
1>agentpp_test_mib.obj : error LNK2019: unresolved external symbol _select at 20 referenced in function "public: virtual int __thiscall agentppTestTimeout::set(class Vbx const &)" (?set at agentppTestTimeout@@UAEHABVVbx@@@Z)
1>C:\Projects\agent_notify\Debug\agent_notify.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Projects\agent_notify\agent_notify\Debug\BuildLog.htm"
1>agent_notify - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I was able to locate all symbols but the last one (error LNK2019) in agent_pp.dll and snmp_pp.dll.
Please advise.
Thank you,
Alona
-----Original Message-----
From: agentpp-bounces at agentpp.org [mailto:agentpp-bounces at agentpp.org] On Behalf Of Jochen Katz
Sent: January 23, 2012 3:12 PM
To: agentpp at agentpp.org
Subject: Re: [AGENT++] example application sending traps
Hi,
the agent in examples/atm_mib/src/agent.cpp uses the notificaton
originator class to set up trap destiantions and then send out a trap
using Mib::notify.
The snmpTraps.cpp uses the snmp++ API to send traps, which of course
differs from the agent++ API used by the agent++ examples.
Regards,
Jochen
Am 20.01.2012 23:00, schrieb Alona Rossen:
> Hello,
>
>
>
> Is there a ready-to-compile-and-run AGENNT++ example application sending
> traps available?
>
> I understand that there are a few ways of sending traps and
> Mib::notify() is one of them, nevertheless a ready to use example would
> be helpful.
>
>
>
> Does snmpTraps.cpp show another way of sending a trap?
>
>
>
> Thank you,
>
> Alona
>
>
>
>
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
>
_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://lists.agentpp.org/mailman/listinfo/agentpp
More information about the AGENTPP
mailing list