On Thu, Aug 27, 2020 at 3:24 AM Liu Hao <lh_mo...@126.com> wrote: > > 在 2020/8/27 上午2:06, Vincent Torri 写道: > > > > i've checked in cmd too, same result > > > > But there is anyway something strange to me : > > > > myprog_gcc.exe and myprog_vs are *both* run in MSYS2, and the result > > is different. So I don't think it's related to path translation. It > > would suggest something related to how gcc builds the binary > > > > > In 'mingw-w64-crt/crt/crtexe.c' , `argv` is initialized by the function > `__getmainargs()` which is imported from MSVCRT. VC > uses new versions of runtime libraries so it'd be MSVCR100, MSVCR120, etc. > There might be some differences in the > aforementioned function.
that makes sense. Is it possible to tell gcc to use msvcr*.dll instead of msvcrt.dll ? Vincent Torri _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public