[GCC-XML] Does GCCXML handle #include_next?

Brad King brad.king at kitware.com
Fri May 30 14:19:07 EDT 2008


Steve M. Robbins wrote:
> Okay, the problem is not gccxml.  I can do this successfully
> 
> 	$ cat test.cc 
> 	#include <complex>
> 	$ gccxml test.cc 
> 
> But the ITK build puts a bunch of include directories, including
> /usr/include.  Doing this causes the problem:
> 
> 	$ gccxml -I/usr/include test.cc 
> 
> 
> 	In file included from /usr/include/c++/4.3/complex:51,
> 	                 from test.cc:1:
> 	/usr/include/c++/4.3/cmath:51:23: error: math.h: No such file or directory

Ahh...and -I/usr/include causes gcc (inside gccxml) to remove it from
later in the include path and therefore not found by include_next.

However, I think it is still a gccxml problem because

  g++-4.3 -I/usr/include test.cc

works.  I'll need to investigate it further.  Please submit a bug report:

  http://www.gccxml.org/Bug

Thanks,
-Brad


More information about the gccxml mailing list