After spending quite a few efforts on bison++ and flex++, I've come to a successful build of DynaMIT on WinXP, finally.
Build with g++ 3.4.2 on mingw. The size of executable is about 22 M (after using "strip", I reduce its size to about 2.8M).
I do not have time to test it for now, though.
===============================================================
Reading specs from D:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw
--enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared
--enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug
--enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)
===============================================================