Web lists-archives.com

[Mingw-users] Does MinGW not support -std=c++11 flag?

When I do g++ -v I get:

Using built-in specs.
Target: mingw32
Configured with: ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads=posix --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls
Thread model: posix
gcc version 5.3.0 (GCC)

I was testing a simple beginner source file:

#include <iostream>

using namespace std;

int main()
      cout << "Hello, World!\n";
      return 0;

Upon passing g++ hellotest.cpp -o hellotest.exe -std=c++11 through the command prompt I am greeted with a wall of errors. Am I missing something? Does MinGW not accept -std=c++11? 


Clayton Weaver

MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe