From 966caff2e6e4f96200ee5a9117a3cff89f379e07 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Wed, 28 Nov 2018 07:30:49 +0000 Subject: [PATCH] Added a comment about using -std=gnu++11 to avoid mingw build failures. --- src/install/install.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/install/install.rst b/src/install/install.rst index fa692828..84ab7467 100644 --- a/src/install/install.rst +++ b/src/install/install.rst @@ -96,10 +96,12 @@ If you intend to use re2c on Windows, you can either use `cygwin `_ or build re2c with `mingw `_ (mingw builds are supported and tested regularly). +For some mingw versions you might have to use ``-std=gnu++11`` compiler option to avoid spurious build errors +(re2c uses ``-std=c++98`` by default). .. code-block:: bash - $ ./configure --host i686-w64-mingw32 + $ ./configure --host i686-w64-mingw32 CXXFLAGS="-std=gnu++11" $ make $ make install -- 2.40.0