[AGENT++] snmp++ - linking problem

barus at poczta.onet.pl barus at poczta.onet.pl
Fri Jan 27 13:22:41 CET 2006


Hi,

 

I have a shared library that uses snmp++ library. I compiled snmp++ library
and next I compiled a shared library. And for now everything is ok. But when
I tried to compile a final application that uses my shared library then I
got errors. I got the errors in the phase of linking all objects files and
shared libraries into the application. Some error messages are below:

 

Undefined                       first referenced
 symbol                             in file
Oid::~Oid()                     /vobs/mz.pr/libs/hp/shared/libpnmsnmp.so
Pdu::~Pdu()                     /vobs/mz.pr/libs/hp/shared/libpnmsnmp.so
UdpAddress::__vtbl             /vobs/mz.pr/libs/hp/shared/libpnmsnmp.so
[Hint: try checking whether the first non-inlined, non-pure virtual function
of
class UdpAddress is defined]

SnmpInt32::SnmpInt32(const long)            
/vobs/mz.pr/libs/hp/shared/libpnmsnmp.so

libpnmsnmp.so is my shared library that is built based on snmp++.

 

The functions that the linker couldn't find are defined in snmp++ library
but they should be included in libpnmsnmp.so when it was built. And the most
strange is that when I build libpnmsnmp.so based on old snmp++ library then
everything is ok (in this case libpnmsnmp.so has over 1.3 MB and in the
previous only 0.5 MB) and I can compile my application. Have you got and
ideas what is wrong?

 

Thanks and regards,

arek

 



More information about the AGENTPP mailing list