[EMAIL PROTECTED]:~> cc test.c -o test.obj
test.c: In function `main': test.c:40: warning: passing arg 3 of `poptGetContext' from incompatible pointer type test.c:65: warning: assignment discards qualifiers from pointer target type /tmp/ccWHDrKJ.o: In function `usage': /tmp/ccWHDrKJ.o(.text+0x16): undefined reference to `poptPrintUsage' /tmp/ccWHDrKJ.o: In function `main': /tmp/ccWHDrKJ.o(.text+0x1f1): undefined reference to `poptHelpOptions' /tmp/ccWHDrKJ.o(.text+0x24e): undefined reference to `poptGetContext' /tmp/ccWHDrKJ.o(.text+0x26d): undefined reference to `poptSetOtherOptionHelp' /tmp/ccWHDrKJ.o(.text+0x28d): undefined reference to `poptPrintUsage' /tmp/ccWHDrKJ.o(.text+0x2ad): undefined reference to `poptGetNextOpt' /tmp/ccWHDrKJ.o(.text+0x33b): undefined reference to `poptGetArg' /tmp/ccWHDrKJ.o(.text+0x356): undefined reference to `poptPeekArg' /tmp/ccWHDrKJ.o(.text+0x38f): undefined reference to `poptStrerror' /tmp/ccWHDrKJ.o(.text+0x3a6): undefined reference to `poptBadOption' /tmp/ccWHDrKJ.o(.text+0x463): undefined reference to `poptFreeContext' collect2: ld returned 1 exit status
I have the #include <popt.h> in the program, what else do I need to make it compile and link correctly ?
-- Ben Duncan Phone (601)-355-2574 Fax (601)-355-2573 Cell (601)-946-1220 Business Network Solutions 336 Elton Road Jackson MS, 39212 "Software is like Sex, it is better when it's free" - Linus Torvalds
_______________________________________________ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
