编译出错了

XIZA00000 35cm2020-12-15745 次点击
这种错误怎么修改代码呀?
我做的程序是关于ad转换的电压表


root@orangepione:~/test_adc# gcc -o cdata client.c -lwiringPi -lpthread
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/9/../../../../lib/libwiringPi.so: undefined reference to `crypt'
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/9/../../../../lib/libwiringPi.so: undefined reference to `rint'
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/9/../../../../lib/libwiringPi.so: undefined reference to `pow'
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/9/../../../../lib/libwiringPi.so: undefined reference to `shm_open'
collect2: error: ld returned 1 exit status
收藏 ♥ 感谢
Spoony 小组长 2020-12-16 
根据提示改就好了
没有找到变量或函数的定义

登录注册 后可回复。

这里由以下店铺的技术人员在此免费提供能力范围内的技术支持。

NXEZ 创客商店(淘宝)

排障问题发帖注意事项:
1、请尽可能将故障说明清晰,列明例如使用环境和做了哪些操作和配置等。
2、排障中已经做了哪些尝试,如果能在问题中进行描述将极大提高解决问题的效率。
3、对于需要自身完成知识积累才能解决的问题,请自行通过搜索引擎寻找资料学习。