CLION 不能运行
#include <iostream> using namespace std; int main() { cout << "Hello World"; return 0; }
下面是报错
"C:Program Files (x86)JetBrainsCLion 2016.1.3bincmakebincmake.exe" --build C:UsersAdministrator.CLion2016.2systemcmakegenerateddemo-df821b8edf821b8eDebug --target all -- -j 4
Scanning dependencies of target demo
[ 50%] Building CXX object CMakeFiles/demo.dir/main.cpp.obj
In file included from c:mingwincludewchar.h:208:0,
from c:mingwlibgccmingw324.9.3includec++cwchar:44,
from c:mingwlibgccmingw324.9.3includec++bitspostypes.h:40,
from c:mingwlibgccmingw324.9.3includec++iosfwd:40,
from c:mingwlibgccmingw324.9.3includec++ios:38,
from c:mingwlibgccmingw324.9.3includec++ostream:38,
from c:mingwlibgccmingw324.9.3includec++iostream:39,
from C:UsersAdministratorClionProjectsdemomain.cpp:1:
c:mingwincludesys/stat.h:173:14: error: '_dev_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:173:14: error: '_ino_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:173:14: error: '_mode_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:173:14: error: '_dev_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:173:14: error: '_off_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:173:14: error: 'time_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:173:14: error: 'time_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:173:14: error: 'time_t' does not name a type
struct _stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:180:13: error: '_dev_t' does not name a type
struct stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:180:13: error: '_ino_t' does not name a type
struct stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:180:13: error: '_mode_t' does not name a type
struct stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:180:13: error: '_dev_t' does not name a type
struct stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:180:13: error: '_off_t' does not name a type
struct stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:180:13: error: 'time_t' does not name a type
struct stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:180:13: error: 'time_t' does not name a type
struct stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:180:13: error: 'time_t' does not name a type
struct stat __struct_stat_defined( _off_t, time_t );
^
c:mingwincludesys/stat.h:188:17: error: '_dev_t' does not name a type
struct _stati64 __struct_stat_defined( __off64_t, time_t );
^
c:mingwincludesys/stat.h:188:17: error: '_ino_t' does not name a type
struct _stati64 __struct_stat_defined( __off64_t, time_t );
^
c:mingwincludesys/stat.h:188:17: error: '_mode_t' does not name a type
struct _stati64 __struct_stat_defined( __off64_t, time_t );
^
c:mingwincludesys/stat.h:188:17: error: '_dev_t' does not name a type
struct _stati64 __struct_stat_defined( __off64_t, time_t );
^
c:mingwincludesys/stat.h:188:17: error: '__off64_t' does not name a type
struct _stati64 __struct_stat_defined( __off64_t, time_t );
^
c:mingwincludesys/stat.h:188:17: error: 'time_t' does not name a type
struct _stati64 __struct_stat_defined( __off64_t, time_t );
^
c:mingwincludesys/stat.h:188:17: error: 'time_t' does not name a type
struct _stati64 __struct_stat_defined( __off64_t, time_t );
^
c:mingwincludesys/stat.h:188:17: error: 'time_t' does not name a type
struct _stati64 __struct_stat_defined( __off64_t, time_t );
^
c:mingwincludesys/stat.h:195:17: error: '_dev_t' does not name a type
struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
^
c:mingwincludesys/stat.h:195:17: error: '_ino_t' does not name a type
struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
^
c:mingwincludesys/stat.h:195:17: error: '_mode_t' does not name a type
struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
^
c:mingwincludesys/stat.h:195:17: error: '_dev_t' does not name a type
struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
^
c:mingwincludesys/stat.h:195:17: error: '__off64_t' does not name a type
struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
^
c:mingwincludesys/stat.h:195:17: error: '__time64_t' does not name a type
struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
^
c:mingwincludesys/stat.h:195:17: error: '__time64_t' does not name a type
struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
^
c:mingwincludesys/stat.h:195:17: error: '__time64_t' does not name a type
struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
^
In file included from c:mingwincludewchar.h:233:0,
from c:mingwlibgccmingw324.9.3includec++cwchar:44,
from c:mingwlibgccmingw324.9.3includec++bitspostypes.h:40,
from c:mingwlibgccmingw324.9.3includec++iosfwd:40,
from c:mingwlibgccmingw324.9.3includec++ios:38,
from c:mingwlibgccmingw324.9.3includec++ostream:38,
from c:mingwlibgccmingw324.9.3includec++iostream:39,
from C:UsersAdministratorClionProjectsdemomain.cpp:1:
c:mingwincludeio.h:335:21: error: 'time_t' does not name a type
struct _wfinddata_t __struct_finddata_t (time_t, _fsize_t);
^
c:mingwincludeio.h:335:21: error: 'time_t' does not name a type
struct _wfinddata_t __struct_finddata_t (time_t, _fsize_t);
^
c:mingwincludeio.h:335:21: error: 'time_t' does not name a type
struct _wfinddata_t __struct_finddata_t (time_t, _fsize_t);
^
c:mingwincludeio.h:336:24: error: 'time_t' does not name a type
struct _wfinddatai64_t __struct_finddata_t (time_t, __int64);
^
c:mingwincludeio.h:336:24: error: 'time_t' does not name a type
struct _wfinddatai64_t __struct_finddata_t (time_t, __int64);
^
c:mingwincludeio.h:336:24: error: 'time_t' does not name a type
struct _wfinddatai64_t __struct_finddata_t (time_t, __int64);
^
c:mingwincludeio.h:362:24: error: '__time64_t' does not name a type
struct __wfinddata64_t __struct_finddata_t (__time64_t, __int64);
^
c:mingwincludeio.h:362:24: error: '__time64_t' does not name a type
struct __wfinddata64_t __struct_finddata_t (__time64_t, __int64);
^
c:mingwincludeio.h:362:24: error: '__time64_t' does not name a type
struct __wfinddata64_t __struct_finddata_t (__time64_t, __int64);
^
In file included from c:mingwlibgccmingw324.9.3includec++bitspostypes.h:40:0,
from c:mingwlibgccmingw324.9.3includec++iosfwd:40,
from c:mingwlibgccmingw324.9.3includec++ios:38,
from c:mingwlibgccmingw324.9.3includec++ostream:38,
from c:mingwlibgccmingw324.9.3includec++iostream:39,
from C:UsersAdministratorClionProjectsdemomain.cpp:1:
c:mingwlibgccmingw324.9.3includec++cwchar:146:11: error: '::fwide' has not been declared
using ::fwide;
^
c:mingwlibgccmingw324.9.3includec++cwchar:153:11: error: '::mbsinit' has not been declared
using ::mbsinit;
^
c:mingwlibgccmingw324.9.3includec++cwchar:164:11: error: '::vfwscanf' has not been declared
using ::vfwscanf;
^
c:mingwlibgccmingw324.9.3includec++cwchar:170:11: error: '::vswscanf' has not been declared
using ::vswscanf;
^
c:mingwlibgccmingw324.9.3includec++cwchar:174:11: error: '::vwscanf' has not been declared
using ::vwscanf;
^
c:mingwlibgccmingw324.9.3includec++cwchar:191:11: error: '::wcstof' has not been declared
using ::wcstof;
^
c:mingwlibgccmingw324.9.3includec++cwchar:198:11: error: '::wmemcmp' has not been declared
using ::wmemcmp;
^
c:mingwlibgccmingw324.9.3includec++cwchar:199:11: error: '::wmemcpy' has not been declared
using ::wmemcpy;
^
c:mingwlibgccmingw324.9.3includec++cwchar:200:11: error: '::wmemmove' has not been declared
using ::wmemmove;
^
c:mingwlibgccmingw324.9.3includec++cwchar:201:11: error: '::wmemset' has not been declared
using ::wmemset;
^
c:mingwlibgccmingw324.9.3includec++cwchar:208:11: error: '::wmemchr' has not been declared
using ::wmemchr;
^
c:mingwlibgccmingw324.9.3includec++cwchar: In function 'wchar_t* std::wmemchr(wchar_t*, wchar_t, std::size_t)':
c:mingwlibgccmingw324.9.3includec++cwchar:229:61: error: invalid conversion from 'const wchar_t*' to 'wchar_t*' [-fpermissive]
{ return wmemchr(const_cast<const wchar_t*>(__p), __c, __n); }
^
c:mingwlibgccmingw324.9.3includec++cwchar:228:3: note: initializing argument 1 of 'wchar_t* std::wmemchr(wchar_t*, wchar_t, std::size_t)'
wmemchr(wchar_t* __p, wchar_t __c, size_t __n)
^
c:mingwlibgccmingw324.9.3includec++cwchar: At global scope:
c:mingwlibgccmingw324.9.3includec++cwchar:248:11: error: '::wcstold' has not been declared
using ::wcstold;
^
c:mingwlibgccmingw324.9.3includec++cwchar:257:11: error: '::wcstoll' has not been declared
using ::wcstoll;
^
c:mingwlibgccmingw324.9.3includec++cwchar:258:11: error: '::wcstoull' has not been declared
using ::wcstoull;
^
c:mingwlibgccmingw324.9.3includec++cwchar:264:22: error: '__gnu_cxx::wcstold' has not been declared
using ::__gnu_cxx::wcstold;
^
c:mingwlibgccmingw324.9.3includec++cwchar:265:22: error: '__gnu_cxx::wcstoll' has not been declared
using ::__gnu_cxx::wcstoll;
^
c:mingwlibgccmingw324.9.3includec++cwchar:266:22: error: '__gnu_cxx::wcstoull' has not been declared
using ::__gnu_cxx::wcstoull;
^
c:mingwlibgccmingw324.9.3includec++cwchar:280:14: error: 'std::wcstof' has not been declared
using std::wcstof;
^
c:mingwlibgccmingw324.9.3includec++cwchar:283:14: error: 'std::vfwscanf' has not been declared
using std::vfwscanf;
^
c:mingwlibgccmingw324.9.3includec++cwchar:286:14: error: 'std::vswscanf' has not been declared
using std::vswscanf;
^
c:mingwlibgccmingw324.9.3includec++cwchar:289:14: error: 'std::vwscanf' has not been declared
using std::vwscanf;
^
c:mingwlibgccmingw324.9.3includec++cwchar:293:14: error: 'std::wcstold' has not been declared
using std::wcstold;
^
c:mingwlibgccmingw324.9.3includec++cwchar:294:14: error: 'std::wcstoll' has not been declared
using std::wcstoll;
^
c:mingwlibgccmingw324.9.3includec++cwchar:295:14: error: 'std::wcstoull' has not been declared
using std::wcstoull;
^
In file included from c:mingwlibgccmingw324.9.3includec++ios:40:0,
from c:mingwlibgccmingw324.9.3includec++ostream:38,
from c:mingwlibgccmingw324.9.3includec++iostream:39,
from C:UsersAdministratorClionProjectsdemomain.cpp:1:
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h: In static member function 'static int std::char_traits<wchar_t>::compare(const char_type*, const char_type*, std::size_t)':
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h:330:39: error: 'wmemcmp' was not declared in this scope
{ return wmemcmp(__s1, __s2, __n); }
^
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h: In static member function 'static const char_type* std::char_traits<wchar_t>::find(const char_type*, std::size_t, const char_type&)':
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h:338:37: error: invalid conversion from 'const char_type* {aka const wchar_t*}' to 'wchar_t*' [-fpermissive]
{ return wmemchr(__s, __a, __n); }
^
In file included from c:mingwlibgccmingw324.9.3includec++bitspostypes.h:40:0,
from c:mingwlibgccmingw324.9.3includec++iosfwd:40,
from c:mingwlibgccmingw324.9.3includec++ios:38,
from c:mingwlibgccmingw324.9.3includec++ostream:38,
from c:mingwlibgccmingw324.9.3includec++iostream:39,
from C:UsersAdministratorClionProjectsdemomain.cpp:1:
c:mingwlibgccmingw324.9.3includec++cwchar:228:3: note: initializing argument 1 of 'wchar_t* std::wmemchr(wchar_t*, wchar_t, std::size_t)'
wmemchr(wchar_t* __p, wchar_t __c, size_t __n)
^
In file included from c:mingwlibgccmingw324.9.3includec++ios:40:0,
from c:mingwlibgccmingw324.9.3includec++ostream:38,
from c:mingwlibgccmingw324.9.3includec++iostream:39,
from C:UsersAdministratorClionProjectsdemomain.cpp:1:
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h: In static member function 'static std::char_traits<wchar_t>::char_type* std::char_traits<wchar_t>::move(std::char_traits<wchar_t>::char_type*, const char_type*, std::size_t)':
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h:342:40: error: 'wmemmove' was not declared in this scope
{ return wmemmove(__s1, __s2, __n); }
^
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h: In static member function 'static std::char_traits<wchar_t>::char_type* std::char_traits<wchar_t>::copy(std::char_traits<wchar_t>::char_type*, const char_type*, std::size_t)':
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h:346:39: error: 'wmemcpy' was not declared in this scope
{ return wmemcpy(__s1, __s2, __n); }
^
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h: In static member function 'static std::char_traits<wchar_t>::char_type* std::char_traits<wchar_t>::assign(std::char_traits<wchar_t>::char_type*, std::size_t, std::char_traits<wchar_t>::char_type)':
c:mingwlibgccmingw324.9.3includec++bitschar_traits.h:350:37: error: 'wmemset' was not declared in this scope
{ return wmemset(__s, __a, __n); }
^
In file included from c:mingwlibgccmingw324.9.3includec++extstring_conversions.h:41:0,
from c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2849,
from c:mingwlibgccmingw324.9.3includec++string:52,
from c:mingwlibgccmingw324.9.3includec++bitslocale_classes.h:40,
from c:mingwlibgccmingw324.9.3includec++bitsios_base.h:41,
from c:mingwlibgccmingw324.9.3includec++ios:42,
from c:mingwlibgccmingw324.9.3includec++ostream:38,
from c:mingwlibgccmingw324.9.3includec++iostream:39,
from C:UsersAdministratorClionProjectsdemomain.cpp:1:
c:mingwlibgccmingw324.9.3includec++cstdlib: At global scope:
c:mingwlibgccmingw324.9.3includec++cstdlib:201:11: error: '::lldiv_t' has not been declared
using ::lldiv_t;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:207:11: error: '::_Exit' has not been declared
using ::_Exit;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:211:11: error: '::llabs' has not been declared
using ::llabs;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:213:10: error: 'lldiv_t' does not name a type
inline lldiv_t
^
c:mingwlibgccmingw324.9.3includec++cstdlib:217:11: error: '::lldiv' has not been declared
using ::lldiv;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:228:11: error: '::atoll' has not been declared
using ::atoll;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:229:11: error: '::strtoll' has not been declared
using ::strtoll;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:230:11: error: '::strtoull' has not been declared
using ::strtoull;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:232:11: error: '::strtof' has not been declared
using ::strtof;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:233:11: error: '::strtold' has not been declared
using ::strtold;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:241:22: error: '__gnu_cxx::lldiv_t' has not been declared
using ::__gnu_cxx::lldiv_t;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
using ::__gnu_cxx::_Exit;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:245:22: error: '__gnu_cxx::llabs' has not been declared
using ::__gnu_cxx::llabs;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:246:22: error: '__gnu_cxx::div' has not been declared
using ::__gnu_cxx::div;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:247:22: error: '__gnu_cxx::lldiv' has not been declared
using ::__gnu_cxx::lldiv;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:249:22: error: '__gnu_cxx::atoll' has not been declared
using ::__gnu_cxx::atoll;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:250:22: error: '__gnu_cxx::strtof' has not been declared
using ::__gnu_cxx::strtof;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:251:22: error: '__gnu_cxx::strtoll' has not been declared
using ::__gnu_cxx::strtoll;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:252:22: error: '__gnu_cxx::strtoull' has not been declared
using ::__gnu_cxx::strtoull;
^
c:mingwlibgccmingw324.9.3includec++cstdlib:253:22: error: '__gnu_cxx::strtold' has not been declared
using ::__gnu_cxx::strtold;
^
In file included from c:mingwlibgccmingw324.9.3includec++extstring_conversions.h:43:0,
from c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2849,
from c:mingwlibgccmingw324.9.3includec++string:52,
from c:mingwlibgccmingw324.9.3includec++bitslocale_classes.h:40,
from c:mingwlibgccmingw324.9.3includec++bitsios_base.h:41,
from c:mingwlibgccmingw324.9.3includec++ios:42,
from c:mingwlibgccmingw324.9.3includec++ostream:38,
from c:mingwlibgccmingw324.9.3includec++iostream:39,
from C:UsersAdministratorClionProjectsdemomain.cpp:1:
c:mingwlibgccmingw324.9.3includec++cstdio:175:11: error: '::snprintf' has not been declared
using ::snprintf;
^
c:mingwlibgccmingw324.9.3includec++cstdio:176:11: error: '::vfscanf' has not been declared
using ::vfscanf;
^
c:mingwlibgccmingw324.9.3includec++cstdio:177:11: error: '::vscanf' has not been declared
using ::vscanf;
^
c:mingwlibgccmingw324.9.3includec++cstdio:178:11: error: '::vsnprintf' has not been declared
using ::vsnprintf;
^
c:mingwlibgccmingw324.9.3includec++cstdio:179:11: error: '::vsscanf' has not been declared
using ::vsscanf;
^
c:mingwlibgccmingw324.9.3includec++cstdio:185:22: error: '__gnu_cxx::snprintf' has not been declared
using ::__gnu_cxx::snprintf;
^
c:mingwlibgccmingw324.9.3includec++cstdio:186:22: error: '__gnu_cxx::vfscanf' has not been declared
using ::__gnu_cxx::vfscanf;
^
c:mingwlibgccmingw324.9.3includec++cstdio:187:22: error: '__gnu_cxx::vscanf' has not been declared
using ::__gnu_cxx::vscanf;
^
c:mingwlibgccmingw324.9.3includec++cstdio:188:22: error: '__gnu_cxx::vsnprintf' has not been declared
using ::__gnu_cxx::vsnprintf;
^
c:mingwlibgccmingw324.9.3includec++cstdio:189:22: error: '__gnu_cxx::vsscanf' has not been declared
using ::__gnu_cxx::vsscanf;
^
In file included from c:mingwlibgccmingw324.9.3includec++string:52:0,
from c:mingwlibgccmingw324.9.3includec++bitslocale_classes.h:40,
from c:mingwlibgccmingw324.9.3includec++bitsios_base.h:41,
from c:mingwlibgccmingw324.9.3includec++ios:42,
from c:mingwlibgccmingw324.9.3includec++ostream:38,
from c:mingwlibgccmingw324.9.3includec++iostream:39,
from C:UsersAdministratorClionProjectsdemomain.cpp:1:
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'long long int std::stoll(const string&, std::size_t*, int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2873:31: error: 'strtoll' is not a member of 'std'
{ return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'long long unsigned int std::stoull(const string&, std::size_t*, int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2878:31: error: 'strtoull' is not a member of 'std'
{ return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'float std::stof(const string&, std::size_t*)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2884:31: error: 'strtof' is not a member of 'std'
{ return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'long double std::stold(const string&, std::size_t*)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2892:31: error: 'strtold' is not a member of 'std'
{ return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'std::string std::to_string(int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2899:45: error: 'vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(int),
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'std::string std::to_string(unsigned int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2904:45: error: 'vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'std::string std::to_string(long int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2910:45: error: 'vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(long),
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'std::string std::to_string(long unsigned int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2915:45: error: 'vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'std::string std::to_string(long long int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2921:45: error: 'vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'std::string std::to_string(long long unsigned int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2927:45: error: 'vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'std::string std::to_string(float)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2936:45: error: 'vsnprintf' is not a member of 'std'
return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'std::string std::to_string(double)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2945:45: error: 'vsnprintf' is not a member of 'std'
return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'std::string std::to_string(long double)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2954:45: error: 'vsnprintf' is not a member of 'std'
return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'long long int std::stoll(const wstring&, std::size_t*, int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2976:31: error: 'wcstoll' is not a member of 'std'
{ return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(),
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'long long unsigned int std::stoull(const wstring&, std::size_t*, int)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2981:31: error: 'wcstoull' is not a member of 'std'
{ return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(),
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'float std::stof(const wstring&, std::size_t*)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2987:31: error: 'wcstof' is not a member of 'std'
{ return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
^
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h: In function 'long double std::stold(const wstring&, std::size_t*)':
c:mingwlibgccmingw324.9.3includec++bitsbasic_string.h:2995:31: error: 'wcstold' is not a member of 'std'
{ return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
^
CMakeFilesdemo.dirbuild.make:61: recipe for target 'CMakeFiles/demo.dir/main.cpp.obj' failed
mingw32-make.exe[2]: *** [CMakeFiles/demo.dir/main.cpp.obj] Error 1
mingw32-make.exe[1]: *** [CMakeFiles/demo.dir/all] Error 2
CMakeFilesMakefile2:66: recipe for target 'CMakeFiles/demo.dir/all' failed
mingw32-make.exe: *** [all] Error 2
Makefile:82: recipe for target 'all' failed
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Thank you very much. It's a great help.
Looks like a mingw issue, try to replace -std=c++11 with -std=gnu++11 (
http://stackoverflow.com/questions/38436542/mingw-cxxtest-bizarre-errors).