This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++-v3/std_cstddef.h's #include_next x libg++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]