I read about clang in the lounge last night and I figured I would try it out, I'm on a Linux (Fedora) and I did 'yum install clang'. It seems like it installed fine, it installed these two packages;
clang-3.3-4.fc19.x86_64
llvm-3.3-4.fc19.x86_64
But now when I tried to use 'clang test.cpp' it threw over a hundred errors and failed while g++ plugged along just fine on the same file...
When I did 'clang -c test.cpp' it did run through all the way to the linker phase without issues. It created a file named test.o which I then did 'g++ test.o' and it finally became an executable "a.out".
I read the man page on clang and it sounds like typing 'clang filename.cpp' should have made an executable without issues.
Am I missing a step?
test.cpp;
1 2 3 4 5 6 7 8 9
#include <iostream>
#include <string>
usingnamespace std;
int main()
{
string hi = "Hello world";
cout << hi;
}