【发布时间】:2021-02-15 03:33:17
【问题描述】:
尝试使用 cmake 3.12 在 Centos 8.2 上编译我的项目,我遇到以下错误:
找不到-lpublic
这是完整的日志:
[ 20%] Building CXX object CMakeFiles/ .cpp.o
[ 40%] Building CXX object CMakeFiles/ .cpp.o
[ 60%] Linking CXX shared library .so
[ 60%] Built target myproj
Scanning dependencies of target nist01
[ 80%] Building CXX object CMakeFiles/ .cpp.o
[100%] Linking CXX executable
/usr/bin/ld: cannot find -lpublic
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/nist01.dir/build.make:85: ...] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/...] Error 2
make: *** [Makefile:84: all] Error 2
试图在互联网上找到一些东西,但没有任何显示。 感谢您的帮助。
【问题讨论】: