在 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. -- Best regards, LH_Mouse
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public