Skip to content
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

Git Bash on Windows does not work by default with POSIX threads #2

Closed
StardustGogeta opened this issue Aug 28, 2022 · 1 comment
Closed

Comments

@StardustGogeta
Copy link
Owner

In order to get multithreading (with <thread>) working on my Windows development environment, I needed to use the POSIX version of MinGW. However, it seems the executables that are built cannot be run by Git Bash for Windows. PowerShell and Windows CMD work fine, but Git Bash silently exits.

This can be fixed by deleting the file libstdc++-6.dll from C:\Program Files\Git\mingw64\bin, but this is inconvenient and may cause other negative effects.

@StardustGogeta
Copy link
Owner Author

I discovered a fix for this: Add the flag -static-libstdc++ to the g++ build command and the problem is solved.

Solved by ff511c3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant