People, I did not ask about a btowc problem. I have two installs of Mingw and GFortran. On the 1st one I can make a Stand Alone Executable using GFortran. On the 2nd one, I can not make a Stand Alone Executable for GFortran. Did I make an install error? Thanks, -----Original Message----- From: MinGW-Users [mailto:mingw****@lists*****] On Behalf Of Eli Zaretskii Sent: Monday, June 29, 2020 1:01 PM To: mingw****@lists***** Subject: [Mingw-users] btowc problem I have a weird problem with MinGW runtime 5.3.1: GDB I've built doesn't run on Windows XP, popping up an error message about btowc. Disassembling a GDB function that calls btowc, I see that it actually calls __msvcrt_btowc. However, wchar.h seems to say that this is what should indeed happen: /* No explicit ISO-C99 compatibility has been requested; map calls * to these functions to delegate to any MSVCRT.DLL implementations * which may be available, or to fall back to the MinGW replacement * implementations, when necessary. */ # define __mingw_redirect(NAME) __msvcrt_##NAME >From this I understand that __msvcrt_btowc is supposed to call the MS implementation in MSVCRT.DLL when that is available, and otherwise fall back on libmingwex. Why does this not happen? Moreover, even if I replace the call to btowc by an explicit call to __mingw_btowc, GDB still refuses to run with the same error message. What am I missing? TIA _______________________________________________ MinGW-Users mailing list MinGW****@lists***** This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.osdn.me/mailman/listinfo/mingw-users Also: mailto:mingw****@lists*****?subject=unsubscribe