Failed to build 19980906 on mips-sgi-irix6.5

Martin Knoblauch knobi@knobisoft.de
Mon Sep 7 16:03:00 GMT 1998


Martin Knoblauch wrote:
> 
> Jeffrey A Law wrote:
> >
> > It's complaining about the following code:
> >
> > static void
> > no_argument (opt)
> >      char *opt;
> > {
> >   fprintf (stderr, "gjavah: no argument given for option `%s'\n", opt);
> >   exit (1);
> > }
> >
> > which appears perfectly fine to me.
> >
> > I suspect you've got a stray #define somewhere for either
> > "no_argument" or "opt" which us creating these problems.
> >
> > I would compile with -save-temps and examine the .i file to see what
> > exactly this code expands to.  Then work backwards to find out where
> > the bogon macro definition is coming from.
> >
> > jeff
> Jeff,
> 
>  seems it is "no_argument". The ".i" file yields.
> 
> static void
> 0  (opt)
>      char *opt;
> {
>   fprintf ((&__iob[2]) , "gjavah: no argument given for option `%s'\n",
> opt);
>   exit (1);
> }
> 
>  I will look further.

 OK, it is actually defined in egcs-19980906/include/getopt.h
Guess some unfortunate naming of the function.

Martin
-- 
+---------------------------------+
|Martin Knoblauch                 |
|---------------------------------|
| http://www.knobisoft.de          |
+---------------------------------+
|e-mail: <knobi@knobisoft.de>     |
+---------------------------------+



More information about the Gcc-bugs mailing list