]> granicus.if.org Git - re2c/commitdiff
Added a comment about using -std=gnu++11 to avoid mingw build failures.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 28 Nov 2018 07:30:49 +0000 (07:30 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 28 Nov 2018 07:30:49 +0000 (07:30 +0000)
src/install/install.rst

index fa692828fd80d718d3da1c8c503309b468a0d4e5..84ab746702a45456f8921779edbc43971d82b3ae 100644 (file)
@@ -96,10 +96,12 @@ If you intend to use re2c on Windows, you can either
 use `cygwin <https://cygwin.com/>`_
 or build re2c with `mingw <http://mingw.org/>`_
 (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