I’ve recently started working with a f77 source code which comes with 11 subroutines. This code is pretty old and others who have used this code in the past say that it worked perfectly when using Compaq Visual Fortran to compile it. Now we’ve switched to VS2012 Fortran compiler and I get a number of errors when compiling and running the code.
To explain in details, I first got errors #8284, #6633 and #6634 for a couple of arrays in some of the subroutines and the source code. I looked this up in forums and used this fix: I set the property Diagnostics > Check Routine Interfaces to No. Then, I am able to build the solution and create the executable.
When I run the executable I get a stack overflow error. I tried solving this by changing some properties. For instance, I tried Heap Arrays option. This time I get a new run-time error. It complains of the allocated memory for a specific array inside the code. I also tried changing Stack Reserve Size but faced the same error again. I am sure that the allocated size for that array is more than enough but I cannot figure out why I still get this error.
I’d be thankful if someone could help me solve this problem.