undefined stderr libiberty/getopt.c

Warrick T. Lacey, Jr. wlacey@lucent.com
Mon Apr 24 05:23:00 GMT 2000


Hi yall, I'm trying to build a cross compiler (host=sparc-sun-solaris2.8
target=poserpc-eabi), while compiling I get a undefined symbol for stderr in
file getopt.c

 669        if (ambig && !exact)
   670          {
   671            if (opterr)
   672              fprintf (stderr, _("%s: option `%s' is ambiguous\n"),
   673                       argv[0], argv[optind]);
   674            nextchar += strlen (nextchar);
   675            optind++;
   676            optopt = 0;
   677            return '?';

shouldn't stderr be defined in stdio.h? any suggestions other than commenting
out the offending line? maybe no one has tried to run gcc-2.95.2 on Solaris2.8
while building a cross compiler for powerpc-eabi... in which case, this may be a
bug.

Thanks,
Warrick


More information about the Gcc-help mailing list