EdH*_*EdH 10 c++ linux header size-t
这件事发生在我之前,但我不记得我是如何修理它的.
我无法在新的Ubuntu安装上编译一些程序......我的标题出了点问题.
我试过g ++ - 4.1和4.3无济于事.
g++ -g -frepo -DIZ_LINUX -I/usr/include/linux -I/usr/include -I/include -c qlisttest.cpp
/usr/include/libio.h:332: error: ‘size_t’ does not name a type
/usr/include/libio.h:336: error: ‘size_t’ was not declared in this scope
/usr/include/libio.h:364: error: ‘size_t’ has not been declared
/usr/include/libio.h:373: error: ‘size_t’ has not been declared
/usr/include/libio.h:493: error: ‘size_t’ does not name a type
/usr/include/stdio.h:294: error: ‘size_t’ has not been declared
...
Run Code Online (Sandbox Code Playgroud)
文件...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
...
@ubuntu:~/work/zpk/src$ cat /usr/include/linux/types.h | grep size_t
typedef __kernel_size_t size_t;
typedef __kernel_ssize_t ssize_t;
Run Code Online (Sandbox Code Playgroud)
types.h绝对是在路径中,并且正在被拾起.我通过更改文件名验证并得到错误...
有没有人有任何想法......?我真的很感激帮助......
归档时间: |
|
查看次数: |
32026 次 |
最近记录: |