[x264-devel] gmake error 'In function `x264_mb_analyse_load_costs': : undefined reference to `log2f'' (freebsd 7.1)
Loren Merritt
lorenm at u.washington.edu
Sun Feb 1 07:29:41 CET 2009
On Sun, 1 Feb 2009, å×ÇÅÎÉÊ ûÁÐÏ×ÁÌ wrote:
> I try gmake latest x264 (today), and I have:
>
> # gmake
> gcc -o x264 x264.o matroska.o muxers.o libx264.a -lm -lpthread -s
> libx264.a(analyse.o)(.text+0xe56): In function `x264_mb_analyse_load_costs':
> : undefined reference to `log2f'
> gmake: *** [x264] Error 1
>
> How I can fix that?
You can add log2f to libm like is required by C99 and POSIX.
--Loren Merritt
More information about the x264-devel
mailing list