title: c -lz library link order (undefined reference to symbol "inflateInit2_")
body: <p>I link the the library in CodeBlocks in this order,</p>
  
  <pre><code>-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
  </code></pre>
  
  <p>still got error: </p>
  
  <pre><code>undefined reference to symbol "inflateInit2_"
  </code></pre>
  
  <p>I am wondering whether it is the library link order problem?
  Where should I put the -lz?</p>