[cfe-dev] How to use STL with clang++?

way_lzl at sina.com way_lzl at sina.com
Wed Dec 22 19:11:32 PST 2010


Hello all
 
Anyone can help me use STL with clang++? My LLVM+Clang was compiled with MSVC8 on Windows7. then I found \Microsoft Visual Studio 8\VC\include is set as the default header file searching path. But c++ with STL will report errors as below:
----------------------------------------------------------------------------------------------
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include/iosfwd(212) :  error
:
      no member named '_invalid_parameter_noinfo' in the global namespace; did
      you mean '_invalid_parameter_handler'?
                _SCL_SECURE_CRT_VALIDATE(_Dest_size >= _Count, NULL);
----------------------------------------------------------------------------------------------
 
I guess MSVC's STL is compatible then turned to STLport, but it still can not work neither. 
----------------------------------------------------------------------------------------------
In file included from ../STLport-5.2.1/stlport/stl/config/_system.h:160:
../STLport-5.2.1/stlport/stl/config/_windows.h(108) :  error: unknown type name
      '_STLP_IMPORT_DECLSPEC'
----------------------------------------------------------------------------------------------
 
However the LLVM's online compiler http://llvm.org/demo/ can compile STL successfully. Anything is wrong? Anything I missed? Or I need llvm-gcc? 
 
Thanks for your help


--Zhanglin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101223/284d4f1d/attachment.html>


More information about the cfe-dev mailing list