17

试图链接到我用 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 toinflate' 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 toinflateInit2_' 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 toinflateEnd' 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 toinflate' H:\ovgl\ovgl...\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser .cpp:(.text+0xed2): 未定义的引用inflateReset' H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0xef8): undefined reference toinflateSetDictionary' H:\ovgl\ovgl...\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0xf52): 未定义引用inflateEnd' H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(XFileParser.cpp.obj):XFileParser.cpp:(.text+0x1b4a): undefined reference toinflateInit2_' 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 toinflateReset' 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 toinflateEnd' H:\ovgl\ovgl...\dependencies\Assimp\lib\libassimp.a (unzip.c.obj):unzip.c:(.text+0x1935): 未定义对inflateInit2_' H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(unzip.c.obj):unzip.c:(.text+0x19b8): undefined reference toget_crc_table' H:\ovgl\ovgl...\dependencies\Assimp\lib\libassimp.a(unzip.c.obj) 的引用:unzip.c:(.text+0x1ec2): 未定义的引用crc32' H:\ovgl\ovgl\.\..\dependencies\Assimp\lib\libassimp.a(unzip.c.obj):unzip.c:(.text+0x1f67): undefined reference toinflate' 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 toinflateEnd'

4

1 回答 1

23

这些是 zlib 库中的函数。您是否有 zlib.h 和 zlib 库(.a 或 .lib)以及正确设置的路径

于 2012-07-23T04:16:48.023 回答