Finally I solve the compiler problem. I installed another version of Clang LLVM that is compatible with C::B.
Now I get other problem when try to build an example:
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}
fatal error: iostream: No such file or directory
I use Main.cpp not Main.c
I changed the code to
#include <stdio.h>
int main() {
printf("Hello world!\n");
return 0;
}
------------- Clean: Release in Test (compiler: LLVM Clang Compiler)---------------
Cleaned "Test - Release"
-------------- Build: Release in Test (compiler: LLVM Clang Compiler)---------------
clang++ -Weverything -fexceptions -O2 -ObjC++ -I/Developer/usr/clang_llvm-3.1/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -c /Volumes/D/C++/Test/Test/main.cpp -o "Release tmp/main.o"
In file included from /Volumes/D/C++/Test/Test/main.cpp:1:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdio.h:64:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/_types.h:27:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/sys/_types.h:32:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/sys/cdefs.h:174:5: warning: '__STDC_VERSION__' is not defined, evaluates to 0 [-Wundef]
#if __STDC_VERSION__ < 199901
^
In file included from /Volumes/D/C++/Test/Test/main.cpp:1:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdio.h:64:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/_types.h:27:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/sys/_types.h:33:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/machine/_types.h:34:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/i386/_types.h:46:9: warning: 'long long' is an extension when C99 mode is not enabled [-pedantic,-Wlong-long]
typedef long long __int64_t;
^
/Developer/SDKs/MacOSX10.6.sdk/usr/include/i386/_types.h:47:18: warning: 'long long' is an extension when C99 mode is not enabled [-pedantic,-Wlong-long]
typedef unsigned long long __uint64_t;
^
/Developer/SDKs/MacOSX10.6.sdk/usr/include/i386/_types.h:78:2: warning: 'long long' is an extension when C99 mode is not enabled [-pedantic,-Wlong-long]
long long _mbstateL; /* for alignment */
^
In file included from /Volumes/D/C++/Test/Test/main.cpp:1:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/stdio.h:397:23: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wconversion]
return (*_p->_p++ = _c);
~ ^~
5 warnings generated.
clang++ -L/Developer/SDKs/MacOSX10.6.sdk/usr/lib -o Release/Test "Release tmp/main.o" -s
clang: error: unable to execute command: posix_spawn failed: No such file or directory
clang: error: linker command failed due to signal (use -v to see invocation)
Process terminated with status 255 (0 minute(s), 1 second(s))
1 error(s), 5 warning(s) (0 minute(s), 1 second(s))