c – 未定义的引用“inflate”

前端之家收集整理的这篇文章主要介绍了c – 未定义的引用“inflate”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
试图链接我与MinGW建立的静态assimp库.以下是我遇到的错误

H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(BlenderLoader.cpp.obj):BlenderLoader.cpp:(.text+0xd91):
undefined reference to inflateInit2_'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(BlenderLoader.cpp.obj):BlenderLoader.cpp:(.text+0xe06):
undefined reference to
inflate’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(BlenderLoader.cpp.obj):BlenderLoader.cpp:(.text+0xf72):
undefined reference to inflateEnd'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(XGLLoader.cpp.obj):XGLLoader.cpp:(.text+0x76c):
undefined reference to
inflateInit2_’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(XGLLoader.cpp.obj):XGLLoader.cpp:(.text+0x7ff):
undefined reference to inflate'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(XGLLoader.cpp.obj):XGLLoader.cpp:(.text+0x953):
undefined reference to
inflateEnd’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0x9ac):
undefined reference to inflateInit2_'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0xd5c):
undefined reference to
inflate’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0xed2):
undefined reference to inflateReset'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0xef8):
undefined reference to
inflateSetDictionary’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0xf52):
undefined reference to inflateEnd'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0x1b4a):
undefined reference to
inflateInit2_’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0x1efa):
undefined reference to inflate'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0x2070):
undefined reference to
inflateReset’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0x2096):
undefined reference to inflateSetDictionary'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0x20f0):
undefined reference to
inflateEnd’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(unzip.c.obj):unzip.c:(.text+0x1935):
undefined reference to inflateInit2_'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(unzip.c.obj):unzip.c:(.text+0x19b8):
undefined reference to
get_crc_table’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(unzip.c.obj):unzip.c:(.text+0x1ec2):
undefined reference to crc32'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(unzip.c.obj):unzip.c:(.text+0x1f67):
undefined reference to
inflate’
H:\ovgl\ovgl…\dependencies\Assimp\lib\libassimp.a(unzip.c.obj):unzip.c:(.text+0x1fb5):
undefined reference to crc32'
H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(unzip.c.obj):unzip.c:(.text+0x2245):
undefined reference to
inflateEnd’

解决方法

这些是zlib库中的函数.你有zlib.h和zlib库(.a还是.lib),路径设置正确
原文链接:https://www.f2er.com/c/115485.html

猜你在找的C&C++相关文章