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

Francois Pichet pichet2000 at gmail.com
Thu Dec 23 04:45:07 PST 2010


2010/12/22 <way_lzl at sina.com>

> 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);
>

This particular error is because _invalid_parameter_noinfo is not defined at
this point.
I did an experiment where I flag everything as
template dependent in Microsoft mode.
It kinda work but i am not ready to submit anything yet about this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101223/a772cf05/attachment.html>


More information about the cfe-dev mailing list