Showing results for 
Search instead for 
Did you mean: 

Error while compiling Fortran code in Visual studio and Intel Fortran compiler

Hello all, 

I have written simple fortran code in visual studio. But when I run it in Visual studio with Intel fortran compiler: I am getting following error message:

Unable to start the program:


Access is denied. 

Code is built successfully though. Here is a log for that:

1>------ Build started: Project: Console4, Configuration: Debug Win32 ------
1>Embedding manifest...
1>Build log written to  "file://C:\Users\...\Desktop\...\Console4\Console4\Debug\BuildLog.htm"
1>Console4 - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


Can anybody please help me to fix this issue? We are unable to determine where is this error message is coming from. 

Thank you in advance for your help in this matter, 


0 Kudos
1 Reply
Black Belt

In most cases, this is caused

In most cases, this is caused by a virus scanner holding a lock on the newly created executable, since that is considered a sign of malware. Try temporarily disabling your antivirus tool to see if that changes things, and if it does, add your development folder to its exclusion list.

Steve (aka "Doctor Fortran") -
0 Kudos