Mingw lacks getopt.h so we are now broken on mingw. Should I rip the needed support and add it to libwine or is there a better way?
gcc -c -I. -I. -I../../include -I../../include -D__MINGW__ -D_WINDOWS -DWINE_NO WINSOCK -Wall -mpreferred-stack-boundary=2 -D__WINE__ -D_REENTRANT -o wrc.o wrc .c wrc.c:62:20: getopt.h: No such file or directory wrc.c:287: elements of array `long_options' have incomplete type wrc.c:288: warning: excess elements in struct initializer wrc.c:288: warning: (near initialization for `long_options[0]') wrc.c:288: warning: excess elements in struct initializer wrc.c:288: warning: (near initialization for `long_options[0]') wrc.c:288: warning: excess elements in struct initializer wrc.c:288: warning: (near initialization for `long_options[0]') wrc.c:288: warning: excess elements in struct initializer wrc.c:288: warning: (near initialization for `long_options[0]') wrc.c:289: warning: excess elements in struct initializer wrc.c:289: warning: (near initialization for `long_options[1]') wrc.c:289: warning: excess elements in struct initializer wrc.c:289: warning: (near initialization for `long_options[1]') wrc.c:289: warning: excess elements in struct initializer wrc.c:289: warning: (near initialization for `long_options[1]') wrc.c:289: warning: excess elements in struct initializer wrc.c:289: warning: (near initialization for `long_options[1]') wrc.c:290: warning: excess elements in struct initializer wrc.c:290: warning: (near initialization for `long_options[2]') wrc.c:290: warning: excess elements in struct initializer wrc.c:290: warning: (near initialization for `long_options[2]') wrc.c:290: warning: excess elements in struct initializer wrc.c:290: warning: (near initialization for `long_options[2]') wrc.c:290: warning: excess elements in struct initializer wrc.c:290: warning: (near initialization for `long_options[2]') wrc.c:291: warning: excess elements in struct initializer wrc.c:291: warning: (near initialization for `long_options[3]') wrc.c:291: warning: excess elements in struct initializer wrc.c:291: warning: (near initialization for `long_options[3]') wrc.c:291: warning: excess elements in struct initializer wrc.c:291: warning: (near initialization for `long_options[3]') wrc.c:291: warning: excess elements in struct initializer wrc.c:291: warning: (near initialization for `long_options[3]') wrc.c:292: warning: excess elements in struct initializer wrc.c:292: warning: (near initialization for `long_options[4]') wrc.c:292: warning: excess elements in struct initializer wrc.c:292: warning: (near initialization for `long_options[4]') wrc.c:292: warning: excess elements in struct initializer wrc.c:292: warning: (near initialization for `long_options[4]') wrc.c:292: warning: excess elements in struct initializer wrc.c:292: warning: (near initialization for `long_options[4]') wrc.c:293: warning: excess elements in struct initializer wrc.c:293: warning: (near initialization for `long_options[5]') wrc.c:293: warning: excess elements in struct initializer wrc.c:293: warning: (near initialization for `long_options[5]') wrc.c:293: warning: excess elements in struct initializer wrc.c:293: warning: (near initialization for `long_options[5]') wrc.c:293: warning: excess elements in struct initializer wrc.c:293: warning: (near initialization for `long_options[5]') wrc.c:294: warning: excess elements in struct initializer wrc.c:294: warning: (near initialization for `long_options[6]') wrc.c:294: warning: excess elements in struct initializer wrc.c:294: warning: (near initialization for `long_options[6]') wrc.c:294: warning: excess elements in struct initializer wrc.c:294: warning: (near initialization for `long_options[6]') wrc.c:294: warning: excess elements in struct initializer wrc.c:294: warning: (near initialization for `long_options[6]') wrc.c:295: warning: excess elements in struct initializer wrc.c:295: warning: (near initialization for `long_options[7]') wrc.c:295: warning: excess elements in struct initializer wrc.c:295: warning: (near initialization for `long_options[7]') wrc.c:295: warning: excess elements in struct initializer wrc.c:295: warning: (near initialization for `long_options[7]') wrc.c:295: warning: excess elements in struct initializer wrc.c:295: warning: (near initialization for `long_options[7]') wrc.c:296: warning: excess elements in struct initializer wrc.c:296: warning: (near initialization for `long_options[8]') wrc.c:296: warning: excess elements in struct initializer wrc.c:296: warning: (near initialization for `long_options[8]') wrc.c:296: warning: excess elements in struct initializer wrc.c:296: warning: (near initialization for `long_options[8]') wrc.c:296: warning: excess elements in struct initializer wrc.c:296: warning: (near initialization for `long_options[8]') wrc.c:297: warning: excess elements in struct initializer wrc.c:297: warning: (near initialization for `long_options[9]') wrc.c:297: warning: excess elements in struct initializer wrc.c:297: warning: (near initialization for `long_options[9]') wrc.c:297: warning: excess elements in struct initializer wrc.c:297: warning: (near initialization for `long_options[9]') wrc.c:297: warning: excess elements in struct initializer wrc.c:297: warning: (near initialization for `long_options[9]') wrc.c:298: warning: excess elements in struct initializer wrc.c:298: warning: (near initialization for `long_options[10]') wrc.c:298: warning: excess elements in struct initializer wrc.c:298: warning: (near initialization for `long_options[10]') wrc.c:298: warning: excess elements in struct initializer wrc.c:298: warning: (near initialization for `long_options[10]') wrc.c:298: warning: excess elements in struct initializer wrc.c:298: warning: (near initialization for `long_options[10]') wrc.c: In function `main': wrc.c:330: warning: implicit declaration of function `getopt_long' make[2]: *** [wrc.o] Error 1 make[2]: Leaving directory `/g/src/wine-dev/wine/tools/wrc' make[1]: *** [wrc] Error 2 make[1]: Leaving directory `/g/src/wine-dev/wine/tools' make: *** [tools] Error 2
isolation@PH33R /g/src/wine-dev/wine $
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
On December 10, 2002 10:18 am, Steven Edwards wrote:
Mingw lacks getopt.h so we are now broken on mingw. Should I rip the needed support and add it to libwine or is there a better way?
I've already sent a patch to Alexandre a few days ago, but he has not applied it yet. Maybe he wants it done differently, and I do not blame him, I submitted the simplest thing possible.
I've already sent a patch to Alexandre a few days ago, but he has not applied it yet. Maybe he wants it done differently, and I do not blame him, I submitted the simplest thing possible.
ok cool, I just saw your patch and it looks like its going to work. lets hope he takes it.
Thanks Steven
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com