locale库上的minGW错误

时间:2018-04-08 08:54:31

标签: c++ c++11 gcc mingw mingw32

我从使用Dev-c ++改为visual studio代码。但似乎我不能编译minGW因为这个bug,如果我也使用了sublime,我就会遇到这个bug。请帮我解决一下这个。 抱歉我的英文不好

  

C:\ MinGW \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ locale.h:36:13:警告:#pragma system_header忽略外部包含文件    #pragma GCC system_header                ^ ~~~~~~~~~~~~   在c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ mingw32 \ bits \ c ++ locale.h:41:0中包含的文件中,                    来自c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ bits \ localefwd.h:40,                    从C:\ MinGW \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ locale.h:38:   c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ clocale:53:11:错误:' :: lconv'尚未宣布      using :: lconv;              ^ ~~~~   c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ clocale:54:11:错误:' :: setlocale'尚未宣布      using :: setlocale;              ^ ~~~~~~~~   c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ clocale:55:11:错误:' :: localeconv'尚未宣布      using :: localeconv;              ^ ~~~~~~~~~   在c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ bits \ localefwd.h:40:0中包含的文件中,                    从C:\ MinGW \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ locale.h:38:   c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ mingw32 \ bits \ c ++ locale.h:在函数' int std :: __ convert_from_v(int * const&,char *, int,const char *,...)':   c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ mingw32 \ bits \ c ++ locale.h:60:19:错误:' setlocale'不是' std'的成员        char * __old = std :: setlocale(LC_NUMERIC,0);                      ^ ~~   c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ mingw32 \ bits \ c ++ locale.h:60:34:错误:' LC_NUMERIC'在这方面没有申明        char * __old = std :: setlocale(LC_NUMERIC,0);                                     ^ ~~~~~~~~~   c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ mingw32 \ bits \ c ++ locale.h:67:2:错误:' setlocale'不是' std'的成员     std :: setlocale(LC_NUMERIC," C");     ^ ~~   c:\ mingw \ lib \ gcc \ mingw32 \ 6.3.0 \ include \ c ++ \ mingw32 \ bits \ c ++ locale.h:83:2:错误:' setlocale'不是' std'的成员     std :: setlocale(LC_NUMERIC,__ sav);     ^ ~~

0 个答案:

没有答案