- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
I recently increased the size of some static array and now get the following warning.
I tried changing my array to dynamic array for the file in question but to no avail.
My configuration is as follow:
vs2010
Intel(R) Visual Fortran Compiler XE 14.0.1.139 [Intel(R) 64].
I now got it in a state where even when compiling an empty file (no code or empty subroutine code) it also fires this warning.
Thanks and regards
Ссылка скопирована
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Now I think the answer is easier :-)
If you are building in the DEBUG configuration, then by default all the "check" options are turned on.
You can see this for yourself by looking at the build log, and seeing what command line options are being passed to 'ifort'.
This solves the mystery of why you get the message; now I have a question for you --- is it causing any sorts of problems for you?
--Lorri
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Thanks Lorri, I confirm that I am building in release.
The issue I am facing is that the subroutine is not doing lots of io in release and gets stuck.
In debug the program runs but very slowly.
Do you know why even an empty file gives out the warning?
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Yes.
The warning comes out because both /check:stack and /O3 are set, and that message is issued even before the compiler starts reading the source file.
If this is really really bothering you, go to Project->Settings->Fortran->Run-time, and turn off Check Stack Frame.
I'm puzzled though, because this is not set (by default) in the RELEASE configuration. Is this something you've set to try and debug your I/O problems?
- Отметить как новое
- Закладка
- Подписаться
- Отключить
- Подписка на RSS-канал
- Выделить
- Печать
- Сообщить о недопустимом содержимом
Many thanks Lorri, indeed that was the issue. Many thanks
- Подписка на RSS-канал
- Отметить тему как новую
- Отметить тему как прочитанную
- Выполнить отслеживание данной Тема для текущего пользователя
- Закладка
- Подписаться
- Страница в формате печати