clang++ 3.2 with libstdc++-6.dll on Windows 7 (32 bit)

大城市里の小女人 提交于 2019-12-14 04:06:38

问题


After searching alot at Stackoverflow and Googling out my problem, I still can't run an .EXE file build using clang++ 3.2.

"clang++" gives out no error when compiling .BC file into .EXE. The moment I try to run the .EXE file, it suddenly terminates the program.

Can anyone help me with this?

I've already tried to use -static-libstdc++-6/libstdc++, but the problem remains.

Side note: executables made using g++ compile without any problem and run fine.

EDITED:

My code:

#include <iostream>

using namespace std;

int main(){

int a=0;
cin>>a;
cout<<a<<endl;
return 0;

}

回答1:


If you use gcc version 4.7.0 or higher, try Making Clang work with MinGW GCC 4.7's libstdc++.



来源:https://stackoverflow.com/questions/18541647/clang-3-2-with-libstdc-6-dll-on-windows-7-32-bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!