移植net-snmp到armlinux上,编译测试程序的时候出现 dlopen,dlsym等未定义的情况

net-snmp交叉编译出现 undefined reference to dlopen,dlsym,dlclose错误_net-snmp

查了下,问题出现在编译选项上,需要加上 -ldl选项。加了选项之后问题得以解决。