Windows 7(32位)上带有libstdc ++-6.dll的clang ++ 3.2 [英] clang++ 3.2 with libstdc++-6.dll on Windows 7 (32 bit)
问题描述
在Stackoverflow上大量搜索并搜索了我的问题之后,我仍然无法使用clang ++ 3.2运行.EXE文件。
After searching alot at Stackoverflow and Googling out my problem, I still can't run an .EXE file build using clang++ 3.2.
clang ++没有给出.BC文件编译成.EXE时出错。当我尝试运行.EXE文件时,它突然终止了程序。
"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.
有人可以帮助我吗?
我已经尝试使用-static-libstdc ++-6 / libstdc ++,但是问题仍然存在。
I've already tried to use -static-libstdc++-6/libstdc++, but the problem remains.
旁注:使用g ++生成的可执行文件可以毫无问题地编译并且运行良好。
Side note: executables made using g++ compile without any problem and run fine.
已编辑:
我的代码:
#include <iostream>
using namespace std;
int main(){
int a=0;
cin>>a;
cout<<a<<endl;
return 0;
}
推荐答案
如果使用gcc版本4.7.0或更高版本,请尝试使用C语言与MinGW GCC 4.7的libstdc ++配合使用。
If you use gcc version 4.7.0 or higher, try Making Clang work with MinGW GCC 4.7's libstdc++.
这篇关于Windows 7(32位)上带有libstdc ++-6.dll的clang ++ 3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!