Getting error when trying to use fortran-utils

Hello, can anyone help me? I am getting the following error when trying to use fortran-utils, and it isn’t compiling my file.

d:/programs/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: C:\Users\test\AppData\Local\Temp\cc66kWAn.o:test.f90:(.text+0x6f4): undefined reference to `__utils_MOD_loadtxt'
collect2.exe: error: ld returned 1 exit status
1 Like

Hello @im_lol, this works for me:

cd fortran-utils
gfortran -c types.f90 -o types.o
gfortran -c utils.f90 -o utils.o
gfortran myprog.f90 -o myprog.exe utils.o

where types.f90 and utils.f90 are from fortran-utils, and myprog.f90 is a Fortran source that uses utils.

1 Like

Thank you that worked!

1 Like