|
编译时提示:
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\" -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -W -MT linux.o -MD -MP -MF .deps/linux.Tpo -c -o linux.o linux.c
In file included from /usr/include/linux/route.h:26,
from linux.c:55:
/usr/include/linux/if.h:119: 错误:‘struct ifmap’重定义
/usr/include/linux/if.h:155: 错误:‘struct ifreq’重定义
/usr/include/linux/if.h:205: 错误:‘struct ifconf’重定义
找网上解决方案,有人说是gcc找错了头文件位置,把/usr/include/linux改成指向/usr/src/linux../include/linux/的符号连接即可。我这样做了,可依然报这个错。这是为什么? |
|