Optimistic76 Ответов: 1

Ошибки при компиляции с параметром ming-w64 / eclipse photon with -m32


Привет,

Я пытаюсь разработать общую библиотеку dll с использованием Eclipse Photon и Mingw-w64. Я хотел бы скомпилировать для 32-битной цели.

Для того, чтобы составить для 32bit настройки:

- для компилятора GCC C++
команда : x86_64-w64-mingw32-gcc.exe
опция : -O3 -g3 -Wall -c -fmessage-длина=1 -m32

- для линкера:
команда : x86_64-w64-mingw32-gcc.exe
вариант : -от WL,--убью-у-у, - добавить-нарушением соглашения о стандартном-псевдоним, - из-implib,Лл.а-М32 -общая


С этими опциями я получаю эти ошибки:

09:08:11 **** Incremental Build of configuration Debug for project MinGWShared ****
Info: Internal Builder is used for build
x86_64-w64-mingw32-gcc.exe -Wl,--kill-at,--add-stdcall-alias,--out-implib,ll.a -m32 -shared -o libMinGWShared.dll funcs.o 
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libmingw32.a when searching for -lmingw32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingw32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libgcc_s.a when searching for -lgcc_s
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libgcc_s.a when searching for -lgcc_s
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libgcc_s.a when searching for -lgcc_s
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_s
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/libgcc.a when searching for -lgcc
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5\libgcc.a when searching for -lgcc
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/libgcc.a when searching for -lgcc
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libmoldname.a when searching for -lmoldname
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmoldname
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libmingwex.a when searching for -lmingwex
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingwex
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libmsvcrt.a when searching for -lmsvcrt
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcrt
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libadvapi32.a when searching for -ladvapi32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libadvapi32.a when searching for -ladvapi32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libadvapi32.a when searching for -ladvapi32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ladvapi32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libshell32.a when searching for -lshell32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libshell32.a when searching for -lshell32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libshell32.a when searching for -lshell32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lshell32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libuser32.a when searching for -luser32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libuser32.a when searching for -luser32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libuser32.a when searching for -luser32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -luser32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libkernel32.a when searching for -lkernel32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libkernel32.a when searching for -lkernel32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libkernel32.a when searching for -lkernel32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lkernel32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libiconv.a when searching for -liconv
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libiconv.a when searching for -liconv
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libiconv.a when searching for -liconv
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -liconv
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libmingw32.a when searching for -lmingw32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingw32
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libgcc_s.a when searching for -lgcc_s
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libgcc_s.a when searching for -lgcc_s
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libgcc_s.a when searching for -lgcc_s
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_s
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/libgcc.a when searching for -lgcc
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5\libgcc.a when searching for -lgcc
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/libgcc.a when searching for -lgcc
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libmoldname.a when searching for -lmoldname
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmoldname.a when searching for -lmoldname
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmoldname
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libmingwex.a when searching for -lmingwex
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmingwex
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib\libmsvcrt.a when searching for -lmsvcrt
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/lib/libmsvcrt.a when searching for -lmsvcrt
C:/mingw-w64/485/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.5/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcrt
collect2.exe: error: ld returned 1 exit status

09:08:12 Build Failed. 68 errors, 0 warnings. (took 931ms)



Что за ошибку я здесь делаю?
спасибо

Что я уже пробовал:

Если я не использую флаг-m32, все компилируется нормально

1 Ответов

Рейтинг:
2

Jochen Arndt

Проблема возникает из-за различных моделей исключений, используемых для 32-и 64-разрядных целевых объектов.

Рекомендуемое и самое простое решение-использовать i686-w64-mingw32-gcc Цепочка инструментов GCC (обратите внимание на i686 в) который создает 32-битный код и не требует -m32 вариант.