I'm building ECCODES on a Windows system using MinGW64. ECCODES is built with CMake, and includes Fortran and C source. After considerable pain finding a gfortran
version that would build the Fortran code in this Windows environment, I've gotten everything to compile, but a Fortran executable won't build because of one lousy undefined reference, to __mingw_get_msvcrt_handle
. How do I solve this?
c:/progra~2/simply~1/mingw-~1/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/
../../../../x86_64-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x2b8):
undefined reference to `__mingw_get_msvcrt_handle'