What do I do about this? Stated simply, it looks like the cc compiler is having trouble with gfortran keywords.
The library.a file was compiled with gfortran.
Compilation:
cc -o main main.c libf2c.a -lm -DLINUX -DSYSV -DNOHLA -g -Wall -Werror -fmax-errors=1 library.a
Compilation output:
library.a: In function `first_test_':
test.f:544: undefined reference to `_gfortran_runtime_error_at'
test.f:544: undefined reference to `_gfortran_runtime_error_at'
test.f:549: undefined reference to `_gfortran_runtime_error_at'
test.f:552: undefined reference to `_gfortran_st_write'
test.f:552: undefined reference to `_gfortran_transfer_character_write'
test.f:552: undefined reference to `_gfortran_st_write_done'
test.f:553: undefined reference to `_gfortran_stop_string'
test.f:557: undefined reference to `_gfortran_runtime_error_at'
test.f:557: undefined reference to `_gfortran_runtime_error_at'
test.f:556: undefined reference to `_gfortran_runtime_error_at'
test.f:564: undefined reference to `_gfortran_st_write'
test.f:564: undefined reference to `_gfortran_transfer_integer_write'
test.f:564: undefined reference to `_gfortran_st_write_done'
test.f:566: undefined reference to `_gfortran_st_write'
test.f:566: undefined reference to `_gfortran_runtime_error_at'
test.f:566: undefined reference to `_gfortran_transfer_character_write'
test.f:566: undefined reference to `_gfortran_st_write_done'
test.f:568: undefined reference to `_gfortran_st_read'
test.f:568: undefined reference to `_gfortran_runtime_error_at'
test.f:568: undefined reference to `_gfortran_transfer_character'
test.f:568: undefined reference to `_gfortran_st_read_done'
test.f:569: undefined reference to `_gfortran_runtime_error_at'
etc. etc. etc.