I've compiled Hello World with g++ 6.3.0-1 on Eclipse on Windows. The executable doesn't run if it can't find the following dlls:
- libgcc_s_dw2-1.dll
- libstdc++-6.dll
Here is the code of my Hello World program:
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World!!!\n"; // prints !!!Hello World!!!
return 0;
}
As I understand it, MinGW attempts to link against MS's standard dlls whenever possible. Why does it link against its own dlls for something as trivial as iostream? What does iostream require in MinGW's libraries that can't be found in MS' libraries ?