[Ffmpeg-devel] [PATCH] last_coeff_flag_offset_8x8 link error

Glenn Maynard glenn
Thu Mar 22 07:10:12 CET 2007


On Wed, Mar 21, 2007 at 08:59:54PM +0000, M?ns Rullg?rd wrote:
> Glenn Maynard <glenn at zewt.org> writes:
> 
> > On link:
> >
> > /usr/local/lib/libavcodec.so: undefined reference to `last_coeff_flag_offset_8x8'
> >
> > I tried moving the declaration up above cabac.h, but it still
> > failed.  Removing static worked.
> 
> What were you doing when this happened, and where was the unresolved
> reference to this?  It's working fine for me, so you'll have to submit
> a full bug report.

./configure --enable-shared --disable-static --disable-debug --enable-small
make
nm -D libavcodec/libavcodec.so|grep last_coeff_flag_offset_8x8
         U last_coeff_flag_offset_8x8

This happens at all -O levels except -O0.  I'm seeing it in gcc 3.3.6, 3.4.6
and 4.0.4, and the undefined reference always happens, eg.
gcc libavcodec/apiexample.c -Ilibavutil -lavutil -lavcodec

-- 
Glenn Maynard




More information about the ffmpeg-devel mailing list