From the Wikipedia articles on Clang and LLVM, and from the LLVM and Clang website, my understanding is that if LLVM is installed then a complete set of a compiler (LLVM) and its front end (Clang) are installed. I installed LLVM 4.0 on Windows 10 64bit and tried to compile the following simple program:
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
cout << "\nBuilt with Clang on Windows!\n" << endl;
return 0;
}
But I got this error message:
clang++ main.cpp -o main
main.cpp:2:10: fatal error: 'iostream' file not found
#include <iostream>
^~~~~~~~~~
1 error generated.
Is my understand correct of what LLVM and Clang are? If yes, what did I miss? If no, how do I compile on Windows using these tools?