gcc 2.97 "fixincludes" breaks wnn/commonhd.h

Dave Korn davek-ml@ntlworld.com
Fri Feb 2 12:11:00 GMT 2001


From: "Martin Buchholz" <martin@xemacs.org>
> Recent CVS gcc 2.97 on my Linux system decides it needs to
> "fixinclude" wnn/commonhd.h.
>
> Unfortunately, wnn/commonhd.h contains this:
>
>
> #include "wnnerror.h"
>
>
> When an application (such as xemacs) does
>
> #include <wnn/commonhd.h>
>
> gcc finds its "fixed" version of commonhd.h in a gcc-specific
> directory.  Unfortunately, there is no wnnerror.h to be found in the
> same directory, so compilation ends with an error.

  I just encountered a similar problem in the vxworks gcc compiler.  Is
wnnerror.h a system include?  Would it be appropriate to use fixincs to
replace

#include "wnnerror.h"
  with
#include <wnnerror.h>

  or more likely
#include <wnn/wnnerror.h>

   ?  (This wouldn't be a good fix if applications expect to be able to
override wnnerror.h...)

   DaveK




More information about the Gcc-bugs mailing list