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

Nikola Smiljanic popizdeh at gmail.com
Wed Sep 5 00:35:50 PDT 2012


I think I saw this last time I tried mingw 4.7 so I went back to 4.6.2
which works without problems.

On Wed, Sep 5, 2012 at 5:19 AM, fiveight <fiveight at tom.com> wrote:
> 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
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list