Bug#594820: clang: specify libstdc++ version of headers to use

Michael Wild themiwi at gmail.com
Tue May 31 12:01:45 UTC 2011


On 05/31/2011 01:06 PM, Sylvestre Ledru wrote:
> Le mardi 31 mai 2011 à 09:39 +0200, Michael Wild a écrit :
>> On 05/31/2011 12:05 AM, Sylvestre Ledru wrote:
>>> Le samedi 28 mai 2011 à 20:37 +0200, Michael Wild a écrit :
>>
>> Forget about that patch; I was obviously too distracted... Attached
>> version 3 of the patch 
> I am sorry but did you try your change ?
> 
> $ cat plop.cpp 
> #include <fenv.h>
> 
> int main(){
> 	return 0;
> }
> $ clang -o plop plop.cpp 
> In file included from plop.cpp:1:
> /usr/include/c++/4.5/fenv.h:33:10: fatal error: 'bits/c++config.h' file
> not
>       found
> #include <bits/c++config.h>
>          ^
> 1 error generated.
> 
> Sylvestre

Your example works fine for me.
/usr/include/c++/4.5/x86_64-linux-gnu/bits/c++config.h is being found
just fine.

Michael






More information about the Pkg-llvm-team mailing list