Bug#594820: clang: specify libstdc++ version of headers to use
Sylvestre Ledru
sylvestre at debian.org
Sun May 22 22:25:26 UTC 2011
Hello
Are you sure it is working for you ?
It fails with the following:
$ echo "#include <fstream>
> void main(){
>
> }
> " > plop.cpp
$ clang -o plop plop.cpp
In file included from plop.cpp:1:
In file included from /usr/include/c++/4.5/fstream:39:
In file included from /usr/include/c++/4.5/istream:39:
In file included from /usr/include/c++/4.5/ios:38:
/usr/include/c++/4.5/iosfwd:39:10: fatal error: 'bits/c++config.h' file
not
found
#include <bits/c++config.h>
^
1 error generated.
And the configure is:
../llvm-2.9/configure CC=x86_64-linux-gnu-gcc CXX=x86_64-linux-gnu-g
++ CPP=x86_64-linux-gnu-cpp --host=x86_64-linux-gnu
--build=x86_64-linux-gnu --prefix=/usr --disable-assertions
--enable-shared --enable-optimized --with-optimize-option=' -g -O2'
--enable-pic --enable-libffi
--with-c-include-dirs=/usr/include/x86_64-linux-gnu:/usr/include
--with-cxx-include-root=/usr/include/c++/4.5
--with-cxx-include-arch=x86_64-linux-gnu --with-cxx-include-32bit-dir=32
--with-cxx-include-64bit-dir=64
--with-c-include-dirs=/usr/include/x86_64-linux-gnu:/usr/include
Thanks
More information about the Pkg-llvm-team
mailing list