linkoption选项中的otherlinkoption 加上 -ldl -lGLEW -lglfw3 -lGL -lX11 -lXi -lXrandr -lXxf86vm -lXinerama -lXcursor -lrt -lm -pthread

search directory中加上第三方库的include和lib路径就ok了

附上链接

https://askubuntu.com/questions/334884/while-compiling-truecrypt-i-get-undefined-reference-to-symbol-dlcloseglibc

http://www.developerq.com/article/1505241501

相关文章: