Why does the "Unrecognized emulation mode: 32" error appear in Eclipse?

Why am I getting this error when compiling with the -m32 argument?

unrecognized emulation mode: 32

I am compiling with g ++ on an x86_64 machine. This happens in one project, but not in another ... Any clues?

Note. I use Eclipse CDT, so maybe this is a specific version of the IDE?

Rephrasable Question

Perhaps the best question is: what is the best way to build x86 binary in Eclipse when running on x86_64?

+3
source share
2 answers

, Eclipse -m32 , .

" : 32" , - !

+3

-m . GNU (ld) -m . script, - . -m LDFLAGS, CXXFLAGS ( ++) CFLAGS (c- ).

, my ld elf_i386 i386linux ELF a.out .

+3

Source: https://habr.com/ru/post/1705050/


All Articles