环境:树莓派3B
LIBRARY_PATH:程序编译期间查找动态链接库时指定查找动态库的路径
相关链接: 库相关
编译时出现
/usr/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exit status
只需要
sudo vi /etc/profile
然后最后加上
export LIBRARY_PATH=$LIBRARY_PATH:“这里是你动态库pwd”
退出,然后
source /etc/profile