undefined reference to `inflate’

Trying to link against a static assimp library which I built with MinGW. Here are the errors I’m getting:

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

Answer

Those are functions in the zlib library. Do you have zlib.h and the zlib library (.a or .lib) and the paths set correctly