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

系统include文件库里缺少event.h文件,但是编译的时候需要用,怎么办?
我用libevent写了一个简单的服务端,编译的时候需要用到event.h头文件,
提示:
event.h: 没有那个文件或目录

系统/usr/include下找了半天没有,编译通不过,怎么办?
安装的是linevent-1.4.13-stable-1
------解决方案--------------------
我的系统里有个event.h 不过估计不是你要的那个
[root@CentOS ~]# find /usr/include/ -name "event.h"
/usr/include/isc/event.h
[root@CentOS ~]# rpm -qf /usr/include/isc/event.h
bind-devel-9.3.6-4.P1.el5_4.2
------解决方案--------------------
装个包吧 就象主席说的那样做