This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
libstdc++-v3/std_cstddef.h's #include_next x libg++
- To: gcc at gcc dot gnu dot org, libstdc++ at sources dot redhat dot com
- Subject: libstdc++-v3/std_cstddef.h's #include_next x libg++
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 09 Aug 2000 03:48:03 -0300
- Organization: GCC Team, Red Hat
I haven't been able to build GCC along with libg++ with libstdc++-v3.
The problem is that directories that are searched by the preprocessor
because of -B switches are searched before those introduced with
-isystem, but libstdc++-v3's std_cstddef.h contains the line:
#include_next <stddef.h>
Since the preprocessor apparently only searches for stddef.h in
directories that appear in the search list after the one in which it
found the current header, it fails.
Maybe we shouldn't be transforming `-I's output by libstdc++-v3's
mkcheck in `-isystem' (so they'd always be searched before directories
introduced by -B)? Maybe std_cstddef.h shouldn't be using
#include_next to include a header with a different name? Maybe I'm
missing something? :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me