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

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

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

猜你喜欢

转载自blog.csdn.net/fuyuande/article/details/82724608
今日推荐