When I try to execute a 32bit file compiled with gcc -m32 main.c -o main
on Windows Subsystem for Linux, I get the following error: bash: ./main: cannot execute binary file: Exec format error
.
If I compile it without-m32
it runs.
Any solution for running 32 bit executable on WSL?
Thanks.