Rebooted Windows. Deleted source directory and created it again. Same errors.
Again deleted the and created it. Turned off real tine virus scanner (F-Secure). Ran ./configure. The error of file removal is now gone. The mismatch of the GTK+ versions is still there: installed version is mingw-w64-x86_64-gtk3 3.24.49-1, ./configure wants it >= 3.24.24 but decides that installed version is not OK.
Looking in the config.log it seams that ld cannot find the libraries. However, they are available in /mingw64/bin.
Then I remembered something I did on Ubuntu, somewhere back in 2014. In order to get things compiling I needed to set envvar LIBRARY_PATH, so now:
$ export LIBRARY_PATH=/mingw64/bin
ran ./configure again. It now finishes without errors. So time for make. Make still fails on misc.c (misc_generated.c compiled with no error):
[C] misc_generated.c
[C] misc.c
D:\ada\gtkada-25.0.0\src\misc.c: In function 'ada_g_filename_from_uri':
D:\ada\gtkada-25.0.0\src\misc.c:89:10: error: implicit declaration of function 'g_filename_from_uri_
utf8'; did you mean 'g_filename_from_utf8'? [-Wimplicit-function-declaration]
89 | return g_filename_from_uri_utf8 (uri, hostname, error);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| g_filename_from_utf8
D:\ada\gtkada-25.0.0\src\misc.c:89:10: error: returning 'int' from a function with return type 'gcha
r *' {aka 'char *'} makes pointer from integer without a cast [-Wint-conversion]
89 | return g_filename_from_uri_utf8 (uri, hostname, error);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ada\gtkada-25.0.0\src\misc.c: In function 'ada_g_filename_from_utf8':
D:\ada\gtkada-25.0.0\src\misc.c:103:10: error: implicit declaration of function 'g_filename_from_utf
8_utf8'; did you mean 'g_filename_from_utf8'? [-Wimplicit-function-declaration]
103 | return g_filename_from_utf8_utf8
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| g_filename_from_utf8
D:\ada\gtkada-25.0.0\src\misc.c:103:10: error: returning 'int' from a function with return type 'gch
ar *' {aka 'char *'} makes pointer from integer without a cast [-Wint-conversion]
103 | return g_filename_from_utf8_utf8
| ^~~~~~~~~~~~~~~~~~~~~~~~~
104 | (utf8string, len, bytes_read, bytes_written, error);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ada\gtkada-25.0.0\src\misc.c: In function 'ada_g_filename_to_uri':
D:\ada\gtkada-25.0.0\src\misc.c:117:10: error: implicit declaration of function 'g_filename_to_uri_u
tf8'; did you mean 'g_filename_to_utf8'? [-Wimplicit-function-declaration]
117 | return g_filename_to_uri_utf8 (filename, hostname, error);
| ^~~~~~~~~~~~~~~~~~~~~~
| g_filename_to_utf8
D:\ada\gtkada-25.0.0\src\misc.c:117:10: error: returning 'int' from a function with return type 'gch
ar *' {aka 'char *'} makes pointer from integer without a cast [-Wint-conversion]
117 | return g_filename_to_uri_utf8 (filename, hostname, error);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ada\gtkada-25.0.0\src\misc.c: In function 'ada_g_filename_to_utf8':
D:\ada\gtkada-25.0.0\src\misc.c:131:10: error: implicit declaration of function 'g_filename_to_utf8_
utf8'; did you mean 'g_filename_to_utf8'? [-Wimplicit-function-declaration]
131 | return g_filename_to_utf8_utf8
| ^~~~~~~~~~~~~~~~~~~~~~~
| g_filename_to_utf8
D:\ada\gtkada-25.0.0\src\misc.c:131:10: error: returning 'int' from a function with return type 'gch
ar *' {aka 'char *'} makes pointer from integer without a cast [-Wint-conversion]
131 | return g_filename_to_utf8_utf8
| ^~~~~~~~~~~~~~~~~~~~~~~
132 | (opsysstring, len, bytes_read, bytes_written, error);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ada\gtkada-25.0.0\src\misc.c: In function 'ada_gdk_event_get_keyval':
D:\ada\gtkada-25.0.0\src\misc.c:820:39: warning: result of '2 << 31' requires 34 bits to represent,
but 'int' only has 32 bits [-Wshift-overflow=]
820 | #define ada_gdk_invalid_gint_value ((2<<31) - 1)
| ^~
D:\ada\gtkada-25.0.0\src\misc.c:869:12: note: in expansion of macro 'ada_gdk_invalid_gint_value'
869 | return ada_gdk_invalid_gint_value;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
D:\ada\gtkada-25.0.0\src\misc.c: In function 'ada_gtk_application_startup':
D:\ada\gtkada-25.0.0\src\misc.c:2056:5: warning: initialization discards 'const' qualifier from poin
ter target type [-Wdiscarded-qualifiers]
2056 | g_application_get_application_id (G_APPLICATION (application));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation of misc.c failed
gprbuild: *** compilation phase failed
make: *** [Makefile:84: build_library_type/static] Error 4