Systeme fault libstdc++-6.dll missing
libstdc++-6.dll
Some questions about libc, libc++, libstdc++
c++ - What is libc++ and libstdc++ - Stack Overflow
Videos
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 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?
Can someone elaborate on what are libc, libc++, libstdc++
-
What the difference between libc++ and libstdc++? Why can't we just use one of them for all times?
-
How to determine which versions of these libs support specific standard version? For example which version of c++ standard does libstdc++-4.6 support?
-
Can i just "copy-paste" these libs into target OS to run my project if that OS lacks newer versions of these ones available in repositories?
-
Can i just "copy-paste" all dependent `.so` files into target OS? What should i consider when "copy-pasting" libraries from my development workstation to user's one?
-
libstdc++ is the GNU c++ standard library implementation.
libc++ is the LLVM/clang c++ standard library implementation.
Even when compiling with clang, libstdc++ (gnu) is often used (on Linux).
A main reason libc++ (clang) exists is that libstdc++ (gnu) is GPL and so Apple can't ship it, so you can think of libc++ as the non-GPL libstdc++.
1) What is libc++ and libstdc++ ?
They are implementations of the C++ standard library.
2) What is the difference between them ?
They are entirely different implementations.
3) Are they interchangeable ?
Yes, you should be able to use them interchangeably. (However you can't easily use both in the same program.)
5) When should I use one or another ?
You shouldn't have to worry about that. Your code should work with any standard library implementation.