I used Eclipse Indigo (3.7) with the MacOSX CDT package to cross-compile Windows applications, and it works great. Just for reference to other interested, I installed mingw with port install i386-mingw32-gcc -universal . In the CDT, create a new C or C ++ project, on the next page of the wizard select "Project Type" as "Cross-compilation project", toolchain - "Cross GCC". On the next page, enter “Command Line Prefix” (I have i386-mingw32- ) and specify the path to the mingw tools.
Complete the wizard, add your files and create!
Cheers, Max
source share