Reputation: 1314
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;
}
Upvotes: 0
Views: 793
Reputation: 948
If you use gcc version 4.7.0 or higher, try Making Clang work with MinGW GCC 4.7's libstdc++.
Upvotes: 1