Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22035

Unrecognised emulation mode: i386pep when linking x64 asm on Windows 10

$
0
0

I've tried to compile a "hello world" assembly program using nasm and gcc. I was able to run it succesfully using 32bit assemblation and linking:

nasm -fwin32 hello.asm
gcc hello.obj

However, when trying to use x64:

nasm -fwin64 hello.asm
gcc -m64 hello.obj

i get:

ld.exe: unrecognised emulation mode: i386pep Supported emulations: i386pe

How can I update the linker for different emulations? The problem persist on both mingw32 & 64.


Viewing all articles
Browse latest Browse all 22035

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>