日期:2014-05-16  浏览次数:20721 次

Mplayer的移植问题,在make的时候出现错误。
错误如下:用的是UBUNTU系统
codec-cfg.c: In function `parse_codec_cfg':
codec-cfg.c:507: error: `builtin_video_codecs' undeclared (first use in this function)
codec-cfg.c:507: error: (Each undeclared identifier is reported only once
codec-cfg.c:507: error: for each function it appears in.)
codec-cfg.c:508: error: `builtin_audio_codecs' undeclared (first use in this function)
make: *** [codec-cfg.o] 错误 1
这是什么原因?

------解决方案--------------------
Makefile,将
$(CC) $(CFLAGS) -g codec-cfg.c mp-msg.c -o -----
中的参数$(CC) 改为gcc。