I'm trying to compile a .f90 file, but it produces the 'Undefined symbols for architecture x86_64 error'
I'm using Mac OS Mojave version 10.14.6 and Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 184.108.40.2061 Build 20190816.
The error is as the following:
Seungcheols-MacBook-Pro:Fortran seungcheollee$ ifort Main.f90
Undefined symbols for architecture x86_64:
"_calibration_", referenced from:
_MAIN__ in ifort96Lt41.o
"_finalsteadystate_", referenced from:
"_globals_mp_calibratecostfunction_", referenced from:
"_globals_mp_doimpulseresponses_", referenced from:
"_impulseresponses_", referenced from:
"_initialsteadystate_", referenced from:
"_savesteadystateoutput_", referenced from:
"_setparameters_", referenced from:
ld: symbol(s) not found for architecture x86_64
There are several subroutines that are referenced from Main.f90 file.
I have almost no knowledge of fortran. Thus, any comment and help would be more than welcome!
For more complete information about compiler optimizations, see our Optimization Notice.