I had downloaded the LLVM Clang compiler from here (
http://llvm.org/releases/3.4/LLVM-3.4-win32.exe), and installed it to the D:\CodeBlocks\LLVM.
The compiler Search directries were setting as below:
[Compiler]
$(CODEBLOCKS)\MinGW\include
$(CODEBLOCKS)\MinGW\include\c++
$(CODEBLOCKS)\MinGW\lib\gcc\mingw32\4.8.1\include\c++
$(CODEBLOCKS)\MinGW\lib\gcc\mingw32\4.8.1\include\c++\mingw32
[Linker]
$(CODEBLOCKS)\MinGW\lib
$(CODEBLOCKS)\MinGW\lib\gcc\mingw32\4.8.1\include\c++
$(CODEBLOCKS)\MinGW\lib\gcc\mingw32\4.8.1\include\c++\mingw32
The Compiler's Installtation directory in Toolchain tab was setting as $(CODEBLOCKS)\LLVM.
There is not problem when I build the C++ project(creat by CB default C++ project template aka. Hello World ), but when I run the .exe file, the .exe would report failed and return 255 (0xFF) exit code.
the c++ code :
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
So is this a problem caused by Clang or missing something that need to setting/add?