Exec format error 32-bit executable Windows Subsystem for Linux?

前端 未结 3 1582
温柔的废话
温柔的废话 2020-12-01 07:02

When I try to execute a 32-bit file compiled with gcc -m32 main.c -o main on Windows Subsystem for Linux, I get the following error: bash: ./main

3条回答
  •  渐次进展
    2020-12-01 07:24

    32-bit ELF support isn't provided by WSL (yet). There doesn't seem to be any progress since the UserVoice was raised - you are out luck.

    See UserVoice: Please add 32 bit ELF support to the kernel and Support for 32-bit i386 ELF binaries.

    If possible, switch to a real Linux ;-)

提交回复
热议问题