ubuntu 16.04联网失败,求帮助,连接都正常,ping不通任何网址,这是什么原因,怎么解决啊?

ubuntu下gcc编译失败什么原因

02-25

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

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试