Skip to content

Instantly share code, notes, and snippets.

@jniemann66
Created January 6, 2026 13:40
Show Gist options
  • Select an option

  • Save jniemann66/697b3eb8d834c865e1f8967ca4deb0a7 to your computer and use it in GitHub Desktop.

Select an option

Save jniemann66/697b3eb8d834c865e1f8967ca4deb0a7 to your computer and use it in GitHub Desktop.
copying goddamn mingw_64 runtime dlls into your goddamn build directory
# 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
@jniemann66
Copy link
Author

jniemann66 commented Jan 6, 2026

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment