QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3010|回复: 3

编译错误,epoll.h出错,uint32_t uint64

[复制链接]
发表于 2005-10-30 17:52:44 | 显示全部楼层 |阅读模式
用的LFS。昨天装了一晚上。。把BOOST装差不多了。。BOOST应该不会出错了。。
但是epoll.h挂了。。我改了一下,,编译过了,,LD又错了。。

只好不动它了。。。不改epoll.h.出错如下,看看是怎么回事
Making all in src
make[2]: Entering directory `/tmp/BitStormLite-0.1b/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. `pkg-config --cflags gtk+-2.0` -g -O2 -c EpollReactor.cpp
^X
[1]+ Stopped make
shizhu@pink:/tmp/BitStormLite-0.1b$ make
make all-recursive
make[1]: Entering directory `/tmp/BitStormLite-0.1b'
Making all in src
make[2]: Entering directory `/tmp/BitStormLite-0.1b/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. `pkg-config --cflags gtk+-2.0` -g -O2 -c EpollReactor.cpp
In file included from EpollReactor.cpp:8:
/usr/include/sys/epoll.h:64: error: 'uint32_t' is used as a type, but is not
defined as a type.
/usr/include/sys/epoll.h:65: error: 'uint64_t' is used as a type, but is not
defined as a type.
/usr/include/sys/epoll.h:73: error: 'uint32_t' is used as a type, but is not
defined as a type.
EpollReactor.cpp: In member function `virtual bool
CEpollReactor::addSocket(ISocket*)':
EpollReactor.cpp:46: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:49: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:49: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:53: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:53: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp: In member function `int CEpollReactor::svc()':
EpollReactor.cpp:135: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:144: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:156: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp: In member function `virtual void
CEpollReactor::updateMask(ISocket*)':
EpollReactor.cpp:178: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:181: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:181: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:185: error: 'struct epoll_event' has no member named 'events'
EpollReactor.cpp:185: error: 'struct epoll_event' has no member named 'events'
make[2]: *** [EpollReactor.o] Error 1
make[2]: Leaving directory `/tmp/BitStormLite-0.1b/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/BitStormLite-0.1b'
make: *** [all-recursive-am] Error 2
发表于 2005-10-30 18:23:25 | 显示全部楼层

epoll.h是系统头文件啊,搞不懂LFS
回复

使用道具 举报

发表于 2005-10-30 22:53:06 | 显示全部楼层
更新kernel-header看看
回复

使用道具 举报

 楼主| 发表于 2005-10-30 23:09:52 | 显示全部楼层
如何更新?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-28 03:21 , Processed in 0.044682 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表