TDM-GCC w64-Skript zum Ändern der Windres für 32-Bit?
Ich versuche, das TDM-GCC (4.7.1) unter XP SP3 zum Laufen zu bringen - ich brauche nur einen C ++ 32-Bit-Build. Es scheint, dass windres nicht im richtigen Format vorliegt. Meine .rc-Datei kann nicht erstellt werden:
x86_64-w64-mingw32-g++.exe -Wall -m32 -s -D_M_X86 -DBUILD_DLL -DNDEBUG -c C:\SynthEditSDK\TD_SV\SV.cpp -o obj\Release\TD_SV\SV.o
windres.exe -J rc -O coff -i C:\SYNTHE~1\TD_SV\TD_SV.rc -o obj\Release\TD_SV\TD_SV.res
x86_64-w64-mingw32-g++.exe -shared -Wl,--output-def=bin\Release\libTD_SV -Wl,--out-implib=bin\Release\libTD_SV -Wl,--dll obj\Release\se_sdk3\mp_sdk_audio.o obj\Release\se_sdk3\mp_sdk_common.o obj\Release\TD_SV\SV.o obj\Release\TD_SV\TD_SV.res -o bin\Release\TD_SV.sem -Wl,--kill-at -static-libgcc -m32 -luser32
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe: i386:x86-64 architecture of input file `obj\Release\TD_SV\TD_SV.res' is incompatible with i386 output
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
0 errors, 2 warnings (0 minutes, 2 seconds)
Meine Ressourcendatei (TD_SV.rc) scheint der Fehler zu sein:
TD_SV.res' is incompatible with i386 output
Ich habe stundenlang gegoogelt und der nächste Lösungsweg ist hier:
Er schlägt dieses Skript vor - aber ich kann nicht herausfinden, wie ich es an meine Bedürfnisse anpassen kann - Jede Hilfe ist willkommen!
$ rescomp [[if (GetProjectManager (). GetActiveProject (). GetActiveBuildTarget (). Matches (_T ("Debug32")) || GetProjectManager (). GetActiveProject (). GetActiveBuildTarget (). Matches (_T ("Release32")) ) {print (_T ("- D USE_X86_MODE-F pe-i386")); }]] -i $ file -J rc -o $ resource_output -O coff $ res_includes
Auch - gibt es TDM-GCC-Alternativen (Pre-Built / Installer-Typ)? Alles was ich wirklich brauche ist ein 32bit Build mit Graphit Optionen. Auch mit CodeBlocks IDE.
Grüße Andrew