gcc on msys2 the compiler is failing
<sigh>How many times must I reject such invalid tickets?</sigh>
MSYS2 is not a MinGW.org product ... indeed, their use of "mingw" within their product name infringes our registered trademark. We do not offer support for any product from such rogue projects, but in any case, it is your code which is broken ... it is a classical example of "undefined behaviour".
When I use gcc on MSYS2 Package
Installation: pacman -S mingw-w64-x86_64-gcc Version: 10.1.0-3 Build Date: 2020-06-01 11:25:47
ld -v: GNU ld (GNU Binutils) 2.34 MINGW64_NT-10.0-18362 Fx 3.1.5-340.x86_64 2020-06-06 09:16 UTC x86_64 Msys
I get a problem from this sample code:
I compile it but it's working bad :(, then I run :
|| gcc -o a1 myproject.c || $ ./a1.exe This is project myproject. ■d
please give me suggestion because i try it on linux, I thins the code is ok.