Ubuntu 为什么编译时此内置类型出错?
操作系统:Ubuntu 为什么编译时此内置类型出错?,ubuntu,gcc,g++,Ubuntu,Gcc,G++,操作系统:ubuntu18.04 GCC:7.5.0 我认为wchar\u t是一种性病类型。。。所以,也许我需要更新gcc?之类的东西,结果是我的头wctype wchar.h被损坏了。通过重新安装libc6-dev、GCC和G++修复 #include <stdio.h> #include <wctype.h> int main () { wchar_t c; return 0; } In file included from /usr/include/w
ubuntu18.04
GCC:7.5.0
我认为wchar\u t是一种性病类型。。。所以,也许我需要更新gcc?之类的东西,结果是我的头
wctype wchar.h
被损坏了。通过重新安装libc6-dev
、GCC
和G++
修复
#include <stdio.h>
#include <wctype.h>
int main ()
{
wchar_t c;
return 0;
}
In file included from /usr/include/wctype.h:38:0,
from main.cpp:2:
/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h:3:12: error: stray ‘`’ in program
none of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true. */
^
/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h:3:36: error: stray ‘`’ in program
none of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true. */
^
/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h:60:2: error: #endif without #if
#endif /* bits/wctype-wchar.h. */