-static
linker flag should work. But it's a better idea to distribute the dlls next to your executable, so the user can update them if needed. Also there are some libraries (not the standard ones) that are licensed under LGPL, and statically linking those would require you to make your app opensource, so static is not always convenient.
↧
Comment by HolyBlackCat on c++ standard libraries linking
↧