You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to run i386 file in BashOnWindows.
I wrote a simple C program 'A.c' and use 'gcc A.c -m32' to make the file 'a.out'
When I use './a.out' to execute it.
It shows ''bash: ./a.out: cannot execute binary file:"
I use Google to find the solution for Ubuntu and try them.
When I use 'dpkg --print-foreign-architectures' to check out.
It shows 'i386' which means the system support i386 binary file.
But when I use './a.out', it still shows ''bash: ./a.out: cannot execute binary file:"
What's wrong / what should be happening instead:
I am a rookie, and I don't know what is wrong.
The text was updated successfully, but these errors were encountered:
The output of dpkg --print-foreign-architectures just tells you that the package manager supports managing packages of those architecture (e.g. for cross-compiling), not that you can actually execute code targeted at them.
10.0.15063
I try to run i386 file in BashOnWindows.
I wrote a simple C program 'A.c' and use 'gcc A.c -m32' to make the file 'a.out'
When I use './a.out' to execute it.
It shows ''bash: ./a.out: cannot execute binary file:"
I use Google to find the solution for Ubuntu and try them.
When I use 'dpkg --print-foreign-architectures' to check out.
It shows 'i386' which means the system support i386 binary file.
But when I use './a.out', it still shows ''bash: ./a.out: cannot execute binary file:"
I am a rookie, and I don't know what is wrong.
The text was updated successfully, but these errors were encountered: