[Ffmpeg-devel] #include dsputil.h needed in opt.c

Michael Niedermayer michaelni
Mon Sep 19 11:03:41 CEST 2005


Hi

On Mon, Sep 19, 2005 at 08:12:39AM +0200, Xavier Rodriguez (INEXBEE) wrote:
> Hi,
> Here I added more information on this issue:
> 
> When using the CVS snapshot I had this error message when compiling ffmpeg:
> 
> gcc  -g  -o ffmpeg_g ffmpeg.o cmdutils.o -L./libavformat -lavformat
> -L./libavcodec -lavcodec -L./libavutil -lavutil -lm -lsocket -lnsl -lz
> Undefined                       first referenced
>  symbol                             in file
> lrintf                              ./libavcodec/libavcodec.a(opt.o)
> ld: fatal: Symbol referencing errors. No output written to ffmpeg_g
> collect2: ld returned 1 exit status
> make: *** [ffmpeg_g] Error 1
> 
> 
> I have seen that lrintf function was pre-processed in the dsputil.h file and
> used by several c files in order to manage the fact that some systems like
> the solaris ones do not have this function in its libraries. The problem is
> that libavcodec/opt.c file uses the lrintf function but does not include
> dsputil.h file.

maybe dsputil.h is not the best place for the lrintf() mess, maybe common.h
would be better ...

[...]

-- 
Michael





More information about the ffmpeg-devel mailing list