Compilation Errors on AMD RYZEN 5 Using GCC and NASM for Assembly Code

Why does this code in the app.asm file fail to compile on an AMD RYZEN 5 processor , using windows 10 64bit operating system, with GCC and NASM as my assemblers, but it works perfectly on an online compiler
https://www.onlinegdb.com/online_gcc_assembler
which the code complied successful and gave the expected output of 17
?

When I compiled the code in the app.asm file using GCC on the local machine AMD RYZEN 5, It logged series of errors:
Check the vbnet output.txt file to see the error logs I got

Even compiling the code using NASM, It logged similar errors as shown in makefile output.txt file

What could I be missing in my local setup, and how can I resolve these errors?
file0.jpg
file1.jpg
file2.jpg
file3.jpg
GDB online Debugger
OnlineGDB is online IDE with gcc assembler. Quick and easy way to run assembly program online.
Solution
Yes sure , I found out that the default output format for NASM is a 16 bit flat binary. And I can't use NASM to assemble it. So I would have to rewrite most of the instructions anyway to port it to Windows. Probably starting again from C compiler output for Windows instead of for GNU/Linux
Thanks
Was this page helpful?