- 论坛徽章:
- 0
|
In file included from /usr/include/stdio.h:34,
from hello.c:2:
/usr/lib/gcc/i686-linux-gnu/4.4.5/include/stddef.h:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
In file included from /usr/include/stdio.h:75,
from hello.c:2:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:495: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from hello.c:2:
/usr/include/stdio.h:316: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:322: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:334: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:341: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:383: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:385: error: format string argument not a string type
/usr/include/stdio.h:387: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:659: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:662: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:672: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:702: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/stdio.h:708: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
/usr/include/stdio.h:730: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
/usr/include/stdio.h:732: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’
hello.c: In function ‘main’:
hello.c:5: warning: missing terminating " character
hello.c:5: error: missing terminating " character
hello.c:6: error: expected expression before ‘}’ token
hello.c:6: error: expected ‘;’ before ‘}’ token
hello.c: At top level:
hello.c:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
root@fmh414888-virtual-machine:~# gcc -o hello hello.c
In file included from /usr/include/stdio.h:34,
from hello.c:2:
/usr/lib/gcc/i686-linux-gnu/4.4.5/include/stddef.h:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
In file included from /usr/include/stdio.h:75,
from hello.c:2:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:495: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from hello.c:2:
/usr/include/stdio.h:316: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:322: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:334: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:341: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:383: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:385: error: format string argument not a string type
/usr/include/stdio.h:387: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:659: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:662: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:672: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:702: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/stdio.h:708: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
/usr/include/stdio.h:730: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
/usr/include/stdio.h:732: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’
hello.c: In function ‘main’:
hello.c:5: warning: missing terminating " character
hello.c:5: error: missing terminating " character
hello.c:6: error: expected expression before ‘}’ token
hello.c:6: error: expected ‘;’ before ‘}’ token
hello.c: At top level:
hello.c:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
错误原因一大堆看不懂啊
|
|