forrt1: severe (170): Program Exception - stack ov

2020-04-21 02:31发布

问题:

and thanks ahead of time for any help!

I have compiled a program (which I did not write) and it works just fine on Mac's but when I try to execute the program on Windows I get the following error message shortly after execution of the program began:

forrt1: severe (170): Program Exception - stack overflow

I am not an ifort or Fortran user, but trying to compile a program for work.

I did an "ifort --version" and I am using Intel Visual Fortran Compiler XE with verion 12.0.0.104. I have been working on this problem for a few days now and I have tried messing with the flags in the Makefile some, but with no luck.

If I can provide any further information, I'll try to do my best. Thanks again!

回答1:

Try adding the following flags during compilation to get more information printed out:

/traceback /check:all

check will do runtime error checking, traceback will tell the compiler to generate extra information when a severe error occurs at runtime.



回答2:

When you compile the program, try the option /heap-arrays to have the compiler place arrays on the heap instead of the stack. Otherwise try making the stack available to the executable larger.