尧昱 wrote:
> I am working on network management software, which is based on net-snmp,
> under redhat,
> I have writed the program----SnmpApp.c,  whose purpose is to get the
> information from Agent, like snmpget in net-snmp
> but, when I compiled it, gcc -L/usr/lib -o SnmpApp SnmpApp.c -lnetsnmp,
> some
> wrong information came out:
> /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit'
> /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal'
> /usr/lib/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
> /usr/lib/libnetsnmp.so: undefined reference to `EVP_md5'
> /usr/lib/libnetsnmp.so: undefined reference to `HMAC'
> /usr/lib/libnetsnmp.so: undefined reference to `EVP_sha1'
> /usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestUpdate'
> /usr/lib/libnetsnmp.so: undefined reference to `RAND_bytes'
> /usr/lib/libnetsnmp.so: undefined reference to `DES_cbc_encrypt'
> /usr/lib/libnetsnmp.so: undefined reference to `DES_ncbc_encrypt'
> /usr/lib/libnetsnmp.so: undefined reference to `DES_key_sched'
> /usr/lib/libnetsnmp.so: undefined reference to `AES_cfb128_encrypt'
> and i want to know how to resolve this problem, what is the reason?

gcc -o SnmpApp SnmpApp.c `net-snmp-config --libs`


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to