hi,<div>  I am using Clang on windows via visual studio. I tried simple program hello.cpp .</div><div><br></div><div>#include <iostream></div><div>using namepace std;</div><div>int main(int args, char** argv)</div><div>
{</div><div> cout << "hello world" << endl;</div><div>}</div><div><br></div><div><br></div><div>after compiling I got following errors....</div><div><br></div><div>temphallo-125521.o : error LNK2019: unresolved external symbol __ZSt4cout refere</div>
<div>nced in function _main</div><div>temphallo-125521.o : error LNK2019: unresolved external symbol __ZdlPv reference</div><div>d in function __ZNSt14error_categoryD0Ev</div><div>temphallo-125521.o : error LNK2019: unresolved external symbol __ZSt18uncaught_e</div>
<div>xceptionv referenced in function __ZNSo6sentryD2Ev</div><div>temphallo-125521.o : error LNK2019: unresolved external symbol ___cxa_rethrow re</div><div>ferenced in function __ZNSt8ios_base5clearEib</div><div>temphallo-125521.o : error LNK2019: unresolved external symbol ___cxa_allocate_e</div>
<div>xception referenced in function __ZNSt8ios_base5clearEib</div><div>temphallo-125521.o : error LNK2019: unresolved external symbol ___cxa_throw refe</div><div>renced in function __ZNSt8ios_base5clearEib</div><div>temphallo-125521.o : error LNK2019: unresolved external symbol __ZSt17iostream_c</div>
<div>ategoryv referenced in function __ZSt15make_error_codeNSt7io_errc7io_errcE</div><div>temphallo-125521.o : error LNK2019: unresolved external symbol __ZNSt9exceptionD</div><div>2Ev referenced in function __ZNSt13runtime_errorD2Ev</div>
<div>temphallo-125521.o : error LNK2019: unresolved external symbol __ZNSt9exceptionC</div><div>2ERKPKc referenced in function __ZNSt13runtime_errorC2EPKc</div><div>temphallo-125521.o : error LNK2001: unresolved external symbol ___cxa_pure_virtu</div>
<div>al</div><div>temphallo-125521.o : error LNK2001: unresolved external symbol __ZTVN10__cxxabiv</div><div>117__class_type_infoE</div><div>temphallo-125521.o : error LNK2001: unresolved external symbol __ZTVN10__cxxabiv</div>
<div>120__si_class_type_infoE</div><div>temphallo-125521.o : error LNK2001: unresolved external symbol __ZTISt9exception</div><div><br></div><div>temphallo-125521.o : error LNK2001: unresolved external symbol __ZNKSt9exception</div>
<div>4whatEv</div><div>temphallo.exe : fatal error LNK1120: 14 unresolved externals</div><div>clang++: error: linker command failed with exit code 1120 (use -v to see invocat</div><div>ion) </div><div><br></div><div><br></div>
<div>how can i bug this problem?</div>