> From: Keith Marshall <keith****@users*****> > Date: Tue, 30 Jun 2020 22:29:44 +0100 > > Do the attached libmsvcrt.a, (and its debug-enabled libmsvcrtd.a), > mitigate the problem, if you drop them into your $MINGW_ROOT/lib > directory, in place of the existing versions? It causes undefined externals at link time: CXX server.o CXXLD gdbserver.exe d:/usr/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: d:/usr/lib/libiconv.a(iconv.o):iconv.c:(.text+0xbbd1): undefined reference to `wcrtomb' d:/usr/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: d:/usr/lib/libiconv.a(iconv.o):iconv.c:(.text+0xbebe): undefined reference to `mbrtowc' collect2.exe: error: ld returned 1 exit status Makefile:349: recipe for target `gdbserver.exe' failed Note that these two functions were the ones that gdbserver.exe is looking for (and not finding) in MSVCRT.DLL when gdbserver is linked with the original libmsvcrt.a from mingwrt 5.3.1. Thanks.