Bug#220910: Please reopen
Le Sat 15/11/2003, Colin Watson disait
> On Sat, Nov 15, 2003 at 05:13:33PM +0100, Erwan David wrote:
> [...]
> > cc -g -ansi -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -DNO_EXPOSE_COMPRESSION -I/usr/include/libart-2.0/libart_lgpl/ -I/usr/include/libart-2.0/ -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -c -o main.o main.c
> > main.c: In function `ParseArgs':
> > main.c:19: warning: implicit declaration of function `getopt'
> > main.c:23: warning: control reaches end of non-void function
> > main.c: At top level:
> > main.c:16: warning: `ParseArgs' defined but not used
> >
> >
> > Why did getopt disappear ?
>
> You're using -ansi, which causes some header files to disable functions
> not called for by ISO C. getopt() is one such. If you remove that flag
> you should find that getopt() reappears.
>
> See the documentation of the -ansi flag.
whole unistd.h is outside iso C, so you mean al unistd.h is unusable
using -ansi ?
--
Erwan
Reply to: