找不到-lz

时间:2019-01-22 15:07:33

标签: c eclipse-cdt zlib

我试图在我的Eclipse C项目中设置zlib,但是我很难在其上添加库。我的设置有什么问题?

我已经按照指南中的说明指定了路径和值,并牢记以下几点:

  1. MingGW C链接器>库上的值'z'和库搜索路径上的'C:Users \ User \ Documents \ zlib-1.2.11'。
  2. GCC C编译器>包含>包含路径上的'C:Users \ User \ Documents \ zlib-1.2.11'

这就是-编译和构建失败。

22:56:32 **** Incremental Build of configuration Debug for project      SDGOExt2 ****
Info: Internal Builder is used for build
gcc "-LC:\\Users\\User\\Documents\\zlib-1.2.11" -shared -o libSDGOExt2.exe sdgundamext.o -lz 
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lz
collect2.exe: error: ld returned 1 exit status

22:56:32 Build Failed. 1 errors, 0 warnings. (took 215ms)

0 个答案:

没有答案
相关问题