title: Running a Win32 app written in NASM results in 'This app cant run on your pc' error
body: <p>I am starting to learn x86 assembly on Windows. I am learning 32 bit x86 assembly. I use <code>nasm</code> and <code>ld</code> in order to compile my programs. I use a <code>mingw32-make</code> makefile as my build system. I am assuming <code>ld</code> came included with MinGW, but I am not sure of that. All I know is that it was already on my computer.</p>
  <p>I wanted to compile a very simple program just to make sure everything was working and of course, it wasn't. When running my executable, a giant blue box came up and said 'This app cant run on your pc' and after closing the notification, the words <code>Access is denied</code> printed out onto my terminal.</p>
  <p>This is my program:</p>
  <pre><code>global _main
  
  _main:
    mov eax, 1
    ret
  </code></pre>
  <p>And this is my makefile:</p>
  <pre><code>main: learn.asm
      nasm -f win32 learn.asm -o learn.o
      ld learn.o -o learn.exe
  </code></pre>
  <p>Could someone help me fix this?</p>