-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mingw64 from msys2 creates corrupt executable #287
Comments
I can not reproduce the issue in my system. Please make sure all the packages are updated using |
Done it. Even reinstalled the whole thing from scratch. Still doesn't work. @Biswa96 |
|
Note that your example will depend on the following DLLs, so make sure they are findable:
|
@lazka if i run this However, I manually found the files using Windows Explorer, and they are in the mentioned directory. |
hmm, so what does |
It literally doesn't show anything. @lazka |
This issue can not be reproduced and only happens in your system. The same gcc compiler toolchain is being used to compile mingw packages. |
Apparently, as I installed Qt, it installed it's own version of mingw64 which was messing with my default g++ installation. Uninstalling Qt fixed it. |
thanks for the update |
I am currently using MSYS_NT-10.0-22621 Legion 3.4.7.x86_64 2023-07-14 16:57 UTC x86_64 Msys
and using mingw64
My mingw64 version is
I wrote a simple main.cpp file which contained.
However, while building it, even though it creates a .exe file, it doesn't output anything.
So, I install a previous version, using Mingw Natively.
And my version was
For Comparison, I compiled the same file into assembly.
12.3.0
And the 13.1 outputs
My command was same for the both version, (without any optimisation option)
for executable
Using
pacman -Qq | grep gcc
in msys2shell, mingw64shell and ucrt64shell,I get these packages
Same for all the shells
When I ran
$ pacman -Qi gcc-libs
in the shell it returned:Also, for more information, I'm adding this:
Running executable generated from 13.1 outputs nothing where, 12.3 executable outputs correctly. It used to work before I updated it. I also used same version of Mingw natively, and it had the same problem.
I also posted this on StackOverflow for help. Here is the link
Is it some sort of bug in g++ 13.1. Why isn't it working?
The text was updated successfully, but these errors were encountered: