libstdc++-6.dll
Where do I Get libstdc++-6.dll?
c++ - libstdc++-6.dll not found - Stack Overflow
mingw - how can i fix "libstdc++-6.dll not found" error in my c++ program? - Stack Overflow
I made a small programm, compiled it and sent it toy friends, who informed me of an error where libstdc++-6.dll was not found. How can i fix that?
If you are using MingW to compile C++ code on Windows, you may like to add the options -static-libgcc and -static-libstdc++ to link the C and C++ standard libraries statically and thus remove the need to carry around any separate copies of those. Version management of libraries is a pain in Windows, so I've found this approach the quickest and cleanest solution to creating Windows binaries.
Another way is if you specify -static it implies -static-libgcc and -static-libstdc++ (as well as linking to all other libraries as static where available). Note that if you are building c++ libraries (like libXX.a type files), they must also be compiled with the same static vs. not or your program will crash.
As far as I know, this is the C++ Runtime Library. So it depends on the compiler you use to create your program (A new version will include some C++0x stuff, an older version will probably not for instance. It depends of the compiler and of its version).
If you use MinGW then you should use the libstdc++-6.dll found into the folder of this compiler. MinGW/bin folder should be the place to search for it on your computer.
If you copy this file in the same directory as your executable, it should be OK.
I ran into this same issue. I was able to use yum to download the RPM, then force install the rpm.
$ sudo yum install --downloadonly --downloaddir=/var/tmp/ libstdc++.i686
$ sudo rpm -ivh --force --nodeps /var/tmp/libstdc++-<VERSION>.i686.rpm
yum
--downloadonly - only download the package into an RPM
--downloaddir - download an RPM to the specified dir
rpm
--ivh - install/verbose log/print hashes for progress
--force - ignore existing installs, this is what ignores the above error
--nodeps - ignore dependencies
It says you i686 package not match with you x86_64 package(must with same version number), update the x86_64 package first, then try again:
yum update -y libstdc++.x86_64
yum install libstdc++.i686