Topic: collect2.exe error?

What is the best way to handle this compiler message:

collect2.exe: error: ld returned 1 exit status
Error(E42): Last command making (Project.exe) returned a bad status
Error(F43): Deleting (Project.exe): Permission denied
Error(E02): Make execution terminated

In the past I have after exhausting all my simplistic options I would open a new project, copy the source and data files into the new project and then compile and execute.

There has to be a better way!

Re: collect2.exe error?

Try deleting Project.exe in Windows Explorer.  I'm guessing it won't work either because either:

1. Project.exe is still running

2. A virus scanner is prohibiting the action.

The first really shouldn't occur in modern versions of Simply Fortran.  Trying to compile Project.exe should force Simply Fortran to first terminate it if it is still running. 

The second can be far trickier to deal with.  We're definitely looking into solutions, but, if it is indeed a virus scanner holding an open handle to the executable, we really can't do anything about it.  Your best bet would be to try "whitelisting" the folder where your Fortran code lives within the virus scanning software.

Jeff Armstrong
Approximatrix, LLC