I am trying to cross compile Hyperion for a 32-bit Windows on a 64-bit Debian linux, but I ran into a few problems in doing so.
First of all, in attempt to install a cross compiler, I installed mingw32 on linux. I am not sure if I installed the correct version or not since there were so much similar packages. Eventually, I locate and read a readme.txt and learn that i686-w64-mingw32-gcc is supposed to be the correct 32-bit Windows C compiler, but there were two versions of i686-w64-mingw32-gcc that might be what I am looking for: i686-w64-mingw32-gcc and i686-w64-mingw32-gcc-win32. So I chose to use i686-w64-mingw32-gcc-win32.
Next, it complaints about not being able to locate cc1plus. A locate of that file led me to /usr/lib/gcc/x86_64-linux-gnu/5/. I went ahead creating a soft link at /usr/bin to /usr/lib/gcc/x86_64-linux-gnu/5/cc1plus.
Afterward, it complaints about missing windows.h. I locate it at /usr/i686-w64-mingw32/include/. After adding -I option to that path to CFLAGS, I got various strange errors. Among them is the one below:
/usr/i686-w64-mingw32/include/_mingw.h:264:2: error: #error Only Win32 target is supported!
Now, I am stuck. I am not sure which step I did wrong. I suspect that it might be the wrong cc1plus I soft linked, but I don't know how to get the right version if that is wrong.