Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner

Compilation options for error checking

Recently I found a compilation difference between the compiler for Linux and the one for windows. The Windows one can report some errors, like miss matching of dummy arguments and actual ones, which the Linux one can't.  I'd like to know if there is any option which can force the compiler to do that. Thanks!

0 Kudos
2 Replies
Highlighted
Black Belt

It is possible that the

It is possible that the default options and/or versions are different for the Linux and Windows Intel Fortran compilers that you used; were the source codes identical?

In general, I have found that the feature and options set of the Linux and Windows versions of Ifort are almost the same, although the abbreviations of the options may be slightly different because of the slight differences in cultures.

0 Kudos
Highlighted
Black Belt

The option you want is -warn

The option you want is -warn interface. This is on by default in newly created Visual Studio projects, but isn't the default when the compiler is invoked from the command line.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos