Intel® Fortran Compiler 17.0 Developer Guide and Reference

Using the -nofor_main Compiler Option (Linux* and OS X*)

Intel® Fortran subprograms can be called by C/C++ main programs. Use the -nofor_main compiler option if your C/C++ program contains the main() entry point and is calling an Intel® Fortran subprogram.