Question

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.

Error Message when I execute a 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;

}
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top