From: niXman <i.n...@gm...> - 2012-09-11 08:59:22
|
2012/9/11 fiveight: > 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.6.2? http://llvm.org/bugs/show_bug.cgi?id=12684 -- Regards, niXman ___________________________________________________ Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows: http://sourceforge.net/projects/mingwbuilds/ |