Created
January 6, 2026 13:40
-
-
Save jniemann66/697b3eb8d834c865e1f8967ca4deb0a7 to your computer and use it in GitHub Desktop.
copying goddamn mingw_64 runtime dlls into your goddamn build directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # usage (run it in git bash): | |
| # cd <your-project's-build-dir> | |
| # copydlls.sh . | |
| # path to your goddamn compiler's dlls | |
| # (they are usually in the bin directory of where compiler is installed) | |
| dllpath=/c/Qt/Tools/mingw1310_64/bin | |
| # copy the damn dlls already | |
| cp ${dllpath}/libatomic-1.dll $1 | |
| cp ${dllpath}/libgcc_s_seh-1.dll $1 | |
| cp ${dllpath}/libgfortran-5.dll $1 | |
| cp ${dllpath}/libgomp-1.dll $1 | |
| cp ${dllpath}/libquadmath-0.dll $1 | |
| cp ${dllpath}/libstdc++-6.dll $1 | |
| cp ${dllpath}/libwinpthread-1.dll $1 | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When compiling C++ projects on Windows using mingw,
it is super tedious and annoying to have to find and copy dlls for deployment when you just want to get something up and running.
This can be run from git bash