#1295 -std=c++0x is error, but -std=gnu++0x is OK!

WSL
closed
None
duplicate
Duplicate
2013-02-19
2009-05-28
Loaden YC
No

if use -std=c++0x, will error:

d:\ycdeng\qpdev\bin\..\lib\gcc\mingw32\4.4.1\include\c++\cwchar|159|error:
'::swprintf' has not been declared|
d:\ycdeng\qpdev\bin\..\lib\gcc\mingw32\4.4.1\include\c++\cwchar|166|error:
'::vswprintf' has not been declared|
||=== Build finished: 2 errors, 0 warnings ===|

if want fix, need #undef __STRICT_ANSI__, see: stdio.h
or option is: -U__STRICT_ANSI__

but when change to: -std=gnu++0x, it's OK!

Discussion

  • Aaron W. LaFramboise

    • priority: 5 --> 9
    • assigned_to: nobody --> aaronwl
     
  • Aaron W. LaFramboise

    Confirmed. This bug exists in 4.4.0 too.

     
  • Keith Marshall

    Keith Marshall - 2010-02-04
    • assigned_to: aaronwl --> dannysmith
     
  • Keith Marshall

    Keith Marshall - 2010-02-04
    • status: open --> closed-duplicate
     
  • Earnie Boyd

    Earnie Boyd - 2013-02-01
    • labels: mingw runtime (deprecated use WSL) -->
    • status: closed-duplicate --> closed
    • resolution: --> duplicate
    • category: --> Duplicate
    • milestone: --> WSL
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks