NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: ben321 on January 16, 2019, 08:40:59 AM

Title: How do I run a posix exe?
Post by: ben321 on January 16, 2019, 08:40:59 AM
I compiled a very simple exe file, and used alink to link it. I set the linker to link it as a posix exe file. I assumed when I double clicked on the exe file, it would then cause windows to start the posix (aka linux) subsystem, and then proceed to use that posix subsystem to execute the exe file. But that didn't happen. Instead, it just gave me the error that it couldn't be run from Windows in 32bit mode (what it typically does for 16bit EXE files). This is a 32bit EXE file though. Only difference is it is a linux EXE file, it should be running from within the posix subsystem.

Please help me here. Thanks in advance.