How to use STL with clang++?

Paul
Thanks for your suggestion. I have used mingw GCC's STL headers with an extra macro__MSVCRT_ _ without which compiler reports fgetws is not declared, then the compilation is OK but link has error.
------------------------------------------------

$ clang++ -I/c/mingw/lib/gcc/mingw32/4.5.1/include/c++/ -I/c/mingw/lib/gcc/min
gw32/4.5.1/include/c++/mingw32 -I/c/mingw/lib/gcc/mingw32/4.5.1/include/c++/bac
kward -I/c/MinGW/lib/gcc/mingw32/4.5.1/…/…/…/…/include -I/c/MinGW/lib/gcc/m
ingw32/4.5.1/include -I/c/MinGW/lib/gcc/mingw32/4.5.1/include-fixed -D__MSVCRT_
_ str.cpp
cc-000000.o : error LNK2001: unresolved external symbol __ZNSaIcEC1Ev
cc-000000.o : error LNK2001: unresolved external symbol __ZNSsC1EPKcRKSaIcE
cc-000000.o : error LNK2001: unresolved external symbol __ZNSaIcED1Ev
cc-000000.o : error LNK2001: unresolved external symbol __ZNSsD1Ev
a.out : fatal error LNK1120: 4 unresolved externals

------------------------------------------------
After using -v I noticed the LLVM uses MSVC's linker, so I just tried GCC's linker, it runs OK.

But… If I used iostream, the GCC’s linker will report undefiend reference to _dso_handle and _cxa_atexit.

Any suggestion? Thanks.

--Zhanglin