snmp++ static linking problem
Kumar, Vinay 2
Vinay____barco.com
Mon Dec 3 06:30:44 CET 2001
> hello,
>
> i'm working on Red Hat Linux 7.1
> there i've created static libraries of Agent++ & Snmp++ Framework
>
> but when i'm trying to link those libraries in my Agent, i get the
> enlisted error
>
> pl. suggest a solution to get rid of it.
>
> regards
>
> VINK
>
> Linking and Creating the Executable..
> /home/vink/SNMPAgents/Release_10/Build/SNMPFrameworks/SNMPLib/libSNMP++.a(
> uxsnmp.o):
> In function `Snmp::get_notify_filter(SnmpCollection<Oid>&,
> SnmpCollection<SnmpTarget>
> &)':/home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/uxsnmp.cpp:
> 1131:
> undefined reference to
> `SnmpCollection<Oid>::operator=(SnmpCollection<Oid> const &)'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/uxsnmp.cpp:1133
> :
> undefined reference to
> `SnmpCollection<SnmpTarget>::operator=(SnmpCollection<SnmpTarget> const
> &)'
> /home/vink/SNMPAgents/Release_10/Build/SNMPFrameworks/SNMPLib/libSNMP++.a(
> uxsnmp.o):
> In function `Snmp::notify_register(SnmpCollection<Oid> const
> &,SnmpCollection<SnmpTarget> const &,void (*)(int, Snmp *, Pdu &,
> SnmpTarget &, void *), void const *)':
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/uxsnmp.cpp:1191
> :
> undefined reference to
> `SnmpCollection<GenAddress>::SnmpCollection(void)'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/uxsnmp.cpp:1197
> :
> undefined reference to
> `SnmpCollection<GenAddress>::~SnmpCollection(void)'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/uxsnmp.cpp:1197
> :
> undefined reference to
> `SnmpCollection<GenAddress>::~SnmpCollection(void)'
> /home/vink/SNMPAgents/Release_10/Build/SNMPFrameworks/SNMPLib/libSNMP++.a(
> notifyqueue.o):
> In function `CNotifyEventQueue::get_listen_port(void)':
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Include/notifyqueue
> .h(.text+0x22):
> undefined reference to
> `SnmpCollection<Oid>::SnmpCollection(SnmpCollection<Oid> const &)'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Include/notifyqueue
> .h(.text+0x3e):
> undefined reference to
> `SnmpCollection<SnmpTarget>::SnmpCollection(SnmpCollection<SnmpTarget>
> const &)'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Include/notifyqueue
> .h(.text+0x5a):
> undefined reference to
> `SnmpCollection<GenAddress>::SnmpCollection(SnmpCollection<GenAddress>
> const &)'
> /home/vink/SNMPAgents/Release_10/Build/SNMPFrameworks/SNMPLib/libSNMP++.a(
> notifyqueue.o):
> In function `CNotifyEvent::~CNotifyEvent(void)':
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/notifyqueue.cpp
> :136:
> undefined reference to `SnmpCollection<Oid>::~SnmpCollection(void)'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/notifyqueue.cpp
> :140:
> undefined reference to
> `SnmpCollection<SnmpTarget>::~SnmpCollection(void)'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/notifyqueue.cpp
> :144:
> undefined reference to
> `SnmpCollection<GenAddress>::~SnmpCollection(void)'
> /home/vink/SNMPAgents/Release_10/Build/SNMPFrameworks/SNMPLib/libSNMP++.a(
> notifyqueue.o):
> In function `CNotifyEvent::notify_filter(Oid const &, SnmpTarget &)
> const':
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/notifyqueue.cpp
> :159:
> undefined reference to `SnmpCollection<SnmpTarget>::size(void)'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/notifyqueue.cpp
> :172:
> undefined reference to
> `SnmpCollection<SnmpTarget>::get_element(SnmpTarget &, int) const'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/notifyqueue.cpp
> :230:
> undefined reference to `SnmpCollection<Oid>::size(void)'
> /home/vink/SNMPAgents/Release_10/Externals/Fock/snmp++/Src/notifyqueue.cpp
> :236:
> undefined reference to `SnmpCollection<Oid>::get_element(Oid &, int)
> const' collect2:
> ld returned 1 exit status
> make: *** ["EXECUTABLE"] Error 1
>
More information about the AGENTPP
mailing list