Click to See Complete Forum and Search --> : Unable to compile/link SNMP++ sample under Linux


efarook
September 17th, 2008, 12:17 AM
Hello,

I am new in the world of snmp++. Recently I have downloaded the latest version of snmp++ for Linux and tried to compile the sample (specifically Qt example). While I try to "make" the sample, at one stage it shows the following message and exit the make utility:

/usr/bin/ld: Cannot find -lsnmp++

Looks like a library file is missing.

Can any one tell me how to solve this problem?

Thanks in advance.

henky@nok.co.id
September 20th, 2008, 01:04 PM
Try to find libsnmp++.so in you library path.

efarook
October 5th, 2008, 10:57 PM
Thanks for your response. I have copied the SO file in the path specified in the make file, which is "/snmp++/lib". But now following new error messages are showing up:

../lib/libsnmp++.so: undefined reference to `des_key_sched'
../lib/libsnmp++.so: undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status

Can you please tell me what to do this time?

henky@nok.co.id
October 6th, 2008, 12:12 AM
I'm not sure. It seems libsnmp++ calls encryption library. It looks like DES library. You need to link with this library also.