[cfe-dev] MinGW 4.7 libstdc++ can not work with Clang 3.1

fiveight fiveight at tom.com
Tue Sep 4 20:19:46 PDT 2012


Hi All!

	I build Clang 3.1 with VS2008, and I install MinGW 4.7 in my Windows 7 too.

	I write main.cpp file like this:

#include <iostream>

using namespace std;

int main()
{
	cout << "Hello World!\n" << endl;
	return 0;
}

When I build main.cpp with MinGW GCC: g++.exe main.cpp -o main.exe

main.exe can execute good.

But When I build main.cpp with Clang: clang++.exe -ccc-host-triple i386-pc-mingw32 main.cpp -o main.exe

After main.exe print "Hello World", it crash in libstdc++-6.dll module.

How can I resolve this problem? or I have to degrade to MinGW 4.2?

Thanks!

        fiveight
        fiveight at tom.com
          2012-09-05




More information about the cfe-dev mailing list