1

CodeBlocks のライブラリをこの順序でリンクします。

-lz
-L/usr/local/lib
-L/usr/local/include
-pthread
-lswscale
-lavutil
-lavcodec
-lmp3lame
-lopus
-ltiff
-lvorbis
-ltheora
-ltheoraenc
-ltheoradec
-lvorbisenc
-ltiffxx
-llzma
-lva
-lavfilter
-lavformat
-lfreetype

それでもエラーが発生しました:

undefined reference to symbol "inflateInit2_"

ライブラリのリンク順序の問題でしょうか? -lz はどこに置くべきですか?

4

1 に答える 1