title: clang "hello, world!" link errors in windows
body: <p>I just downloaded the CLang sources, made a Visual C++ 10 IDE workspace by using CMake, and built everything from Visual C++ 10.0 (express).</p>
  
  <p>Now I get a bunch of linker errors on hello world:</p>
  
  <pre>
  d:\dev\test&gt; type con &gt;foo.cpp
  #include &lt;iostream&gt;
  using namespace std;
  int main() { cout &lt;&lt; "Hello, cling-clong world!" &lt;&lt; endl; }
  ^Z
  
  d:\dev\test&gt; clang++ foo.cpp
  foo-839435.o : error LNK2019: unresolved external symbol __ZSt4cout referenced in function _main
  foo-839435.o : error LNK2019: unresolved external symbol __ZdlPv referenced in function __ZNSt14error_categoryD0Ev
  foo-839435.o : error LNK2019: unresolved external symbol __ZSt18uncaught_exceptionv referenced in function __ZNSo6sentry
  D2Ev
  foo-839435.o : error LNK2019: unresolved external symbol ___cxa_rethrow referenced in function __ZNSt8ios_base5clearEib
  foo-839435.o : error LNK2019: unresolved external symbol ___cxa_allocate_exception referenced in function __ZNSt8ios_base5clearEib
  foo-839435.o : error LNK2019: unresolved external symbol ___cxa_throw referenced in function __ZNSt8ios_base5clearEib
  foo-839435.o : error LNK2019: unresolved external symbol __ZSt17iostream_categoryv referenced in function __ZSt15make_er
  </pre>
  
  <p>So what can I do about it?</p>