【GCC】添加动态库搜索路径

NotReferenced / 2023-07-30 / 原文

使用-L选项可以添加额外的链接库搜索路径,如下:

gcc -o main main.c -L/usr/test -ltest