首页 > 其他分享> > /usr/bin/ld: /usr/local/lib/libglfw3.a(posix_module.c.o): undefined reference to symbol 'dlclos
/usr/bin/ld: /usr/local/lib/libglfw3.a(posix_module.c.o): undefined reference to symbol 'dlclos
作者:互联网
/usr/bin/ld: /usr/local/lib/libglfw3.a(posix_module.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [src/Tools/CMakeFiles/ViewGeometry.dir/build.make:109:bin/ViewGeometry] 错误 1
make[1]: *** [CMakeFiles/Makefile2:2016:src/Tools/CMakeFiles/ViewGeometry.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务..
解决方法:
在build/src/Tools/CMakeFiles/ViewGeometry.dir/link.txt
最后面添加-ldl
标签:bin,ld,CMakeFiles,..,make,usr 来源: https://www.cnblogs.com/xiaohuidi/p/16475804.html