You can find other releases here (but be aware that they are hidden for a good reason: most of them contain bugs that have been fixed in the next minor release).


re2c is hosted on github:

$ git clone re2c

There’s also a mirror on sourceforge (should be in sync with github):

$ git clone ssh:// re2c



Summary of available re2c versions in many (but not all) Linux distributions can be found on


You only need C++98 compier to build re2c from tarball. If you have bison, re2c will use it (otherwise it will use precompiled files).

If you are building re2c from source (not from tarball), you will also need autotools:

$ ./


This will install re2c (binary and manpage) to prefix (/usr/local by default):

$ ./configure [--prefix=<prefix>]
$ make
$ make install


Some parts of re2c (lexers and parser of command-line options) are written in re2c. These files are precompiled and packaged into re2c distribution (so that re2c can be built without re2c). However, one can fully bootstrap re2c:

$ make bootstrap


re2c supports out-of-source builds:

$ mkdir builddir && cd builddir
$ ../configure [--prefix=<prefix>]
$ make
$ make install


If you intend to use re2c on Windows, you can either use cygwin or build re2c with mingw:

$ ./configure --host i686-w64-mingw32  [--prefix=<prefix>]
$ make
$ make install

(mingw builds are supported and tested regularly).


re2c has a main test suite and a couple of small tests. Run them all:

$ make check

Or run only the main test suite (and watch progress dumped to stdout):

$ make tests

Run test suite under valgrind (takes a long time):

$ make vtests

Test mingw builds with wine:

$ make wtests

Check the distribution:

$ make distcheck