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
getopt is a Posix extension, not ANSI C. When you specify -ansi, you're asking for the smaller set of functions that is just ANSI C. Removing the -ansi -pedantic will fix your problem. Tks, Jeff Bailey

