From a C main program I am calling a fortran subroutine which invokes various fortran features like opening and closing files.
I use gcc to link the C object with the fortran object and gcc lists the following as missing.
Undefined symbols for architecture x86_64:
"__gfortran_st_close", referenced from:
"__gfortran_st_open", referenced from:
"__gfortran_st_read", referenced from:
"__gfortran_st_read_done", referenced from:
"__gfortran_st_rewind", referenced from:
"__gfortran_st_write", referenced from:
"__gfortran_st_write_done", referenced from:
"__gfortran_stop_string", referenced from:
"__gfortran_transfer_array", referenced from:
"__gfortran_transfer_character_write", referenced from:
"__gfortran_transfer_real", referenced from:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)