|
今天在编译MPlayer 1.0pre8出现了如下错误:
- m_option.c:9:18: error: math.h: No such file or directory
- m_option.c: In function 'parse_double':
- m_option.c:213: warning: incompatible implicit declaration of built-in function 'pow'
- make: *** [m_option.o] 错误 1
复制代码
因为此前曾经成功编译过Mplayer 1.0pre7,进入到Mplayer 1.0pre7的目录下,重新编译仍出现上述错误。
于是试着查找math.h的位置
- find /lib -name math.h
- find /usr -name math.h
- find / -name math.h
复制代码
均无法找到,看来是缺少库文件了,但是仍然百思不得甚解,因为以前能编译成功说明math.h文件是有的,而此后我并没有删除任何库文件(只是把KDE桌面环境卸载了,现在只用Gnome)。
现在想解决的问题是:
1、math.h 属于那个库
2、需要安装什么软件包才能恢复math.h |
|