can't open file.exe

Hi everybody,
I used PGI Fortran for open a file hello.f but i got
LINK:fatal error LNK1104: cannot open file hello.exe.
I don’t know why it didn’t compiler.
Thank of avance.


This error can pop up for a variety of reasons. Usually it indicates that the linker cannot write out the output file hello.exe for some reason. There are a variety of reasons as to why this could happen - for example:

  • Insufficient permission to write ‘hello.exe’ to the directory
  • Another process has a lock on creating the file ‘hello.exe’
  • Anti-virus software may inhibit creating new executables

This list is not exhaustive, but should give you some ideas of things to try. Check file permissions, reboot your system, and try disabling anti-virus checking on the directory where you are compiling hello.exe.

Hope this helps,