c++eclipseg++

Why do I get the "unrecognised emulation mode: 32" error in Eclipse?


How come I get this error when compiling with the -m32 argument?

unrecognised emulation mode: 32

I'm compiling using g++ on an x86_64 machine. It happens in one project, but not the other... Any hints?

Note: I'm using Eclipse CDT, so perhaps this is an IDE specific gocha?

Rephrased question

Perhaps a better question would be: What is the best method of building an x86 binary in Eclipse when running on an x86_64 machine?


Solution

  • It seems that in Eclipse, you must specify -m32 in the miscelanious linker options, if it's specified in the compiler options.

    The "unrecognised emulation mode: 32" error message appears when your reference a library path that doesn't exist - which is weird!