My MinGW's C++11 doesn't work

  • suibian
    28th Dec 2017 Member 0 Permalink

    In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\postypes.h:40:0,
    from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\char_traits.h:40,
    from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\string:40,
    from src\Format.cpp:3:
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:164:11: error: '::vfwscanf' has not been declared
    using ::vfwscanf;
    ^~~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:170:11: error: '::vswscanf' has not been declared
    using ::vswscanf;
    ^~~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:174:11: error: '::vwscanf' has not been declared
    using ::vwscanf;
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:191:11: error: '::wcstof' has not been declared
    using ::wcstof;
    ^~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:248:11: error: '::wcstold' has not been declared
    using ::wcstold;
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:264:22: error: '__gnu_cxx::wcstold' has not been declared
    using ::__gnu_cxx::wcstold;
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:280:14: error: 'std::wcstof' has not been declared
    using std::wcstof;
    ^~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:283:14: error: 'std::vfwscanf' has not been declared
    using std::vfwscanf;
    ^~~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:286:14: error: 'std::vswscanf' has not been declared
    using std::vswscanf;
    ^~~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:289:14: error: 'std::vwscanf' has not been declared
    using std::vwscanf;
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:293:14: error: 'std::wcstold' has not been declared
    using std::wcstold;
    ^~~~~~~
    In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ext\string_conversions.h:41:0,
    from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\basic_string.h:5402,
    from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\string:52,
    from src\Format.cpp:3:
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:220:11: error: '::lldiv_t' has not been declared
    using ::lldiv_t;
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:226:11: error: '::_Exit' has not been declared
    using ::_Exit;
    ^~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:230:11: error: '::llabs' has not been declared
    using ::llabs;
    ^~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:232:10: error: 'lldiv_t' does not name a type
    inline lldiv_t
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:236:11: error: '::lldiv' has not been declared
    using ::lldiv;
    ^~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:247:11: error: '::atoll' has not been declared
    using ::atoll;
    ^~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:248:11: error: '::strtoll' has not been declared
    using ::strtoll;
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:249:11: error: '::strtoull' has not been declared
    using ::strtoull;
    ^~~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:251:11: error: '::strtof' has not been declared
    using ::strtof;
    ^~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:252:11: error: '::strtold' has not been declared
    using ::strtold;
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:260:22: error: '__gnu_cxx::lldiv_t' has not been declared
    using ::__gnu_cxx::lldiv_t;
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:262:22: error: '__gnu_cxx::_Exit' has not been declared
    using ::__gnu_cxx::_Exit;
    ^~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:264:22: error: '__gnu_cxx::llabs' has not been declared
    using ::__gnu_cxx::llabs;
    ^~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:265:22: error: '__gnu_cxx::div' has not been declared
    using ::__gnu_cxx::div;
    ^~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:266:22: error: '__gnu_cxx::lldiv' has not been declared
    using ::__gnu_cxx::lldiv;
    ^~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:268:22: error: '__gnu_cxx::atoll' has not been declared
    using ::__gnu_cxx::atoll;
    ^~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:269:22: error: '__gnu_cxx::strtof' has not been declared
    using ::__gnu_cxx::strtof;
    ^~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:270:22: error: '__gnu_cxx::strtoll' has not been declared
    using ::__gnu_cxx::strtoll;
    ^~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:271:22: error: '__gnu_cxx::strtoull' has not been declared
    using ::__gnu_cxx::strtoull;
    ^~~~~~~~
    d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdlib:272:22: error: '__gnu_cxx::strtold' has not been declared
    using ::__gnu_cxx::strtold;

     

    and more errors

  • jacob1
    28th Dec 2017 Developer 0 Permalink
    @suibian (View Post)
    Try replacing this line with -std=gnu++11 and tell me if it works

    Edit: Also it's probably a issue with using an older MinGW compiler, at some point in the future I'll update the wiki guide to use mingw-w64. But for now, that might work.

    Edit2:
    Did it work? Reply if it is working so I can update this in the real SConscript
    Edited 2 times by jacob1. Last: 28th Dec 2017