- 论坛徽章:
- 0
|
回复 1楼 diypig 的帖子
#error including kernel header in userspace; use the glibc headers instead!
提示的很清楚了. 让你用 glibc headers
下面这句话可以解释下原因吧.
For years it has been common practice to use “raw” kernel headers (straight from a kernel tarball) in /usr/include, but over the last few years, the kernel developers have taken a strong stance that this should not be done. This gave birth to the Linux-Libc-Headers Project, which was designed to maintain an Application Programming Interface (API) stable version of the Linux headers.
我也遇到过这个问题. 知道了2.4和2.6的区别后就恍然大白了. |
|