On Sun, Apr 28, 2002 at 01:15:17PM -0700, Francois Gouget wrote: > On Sun, 28 Apr 2002, Robert Collins wrote: > [...] > > > 4. add -liberty to the makefile for wrc and wmc. This is > > > needed because of getopt and optarg > > > > Cygwin has a BSD licenced getopt.c that doesn't need libiberty to link, > > only mingw (AFAIK). Anyway worth investigating? > > I usually regard getopt functions as higly unportable and always try > to avoid them. I did not check how they are used in wrc&co, but it > should not be very difficult to do entirely without them. I believe that > would be the best solution. Yep, probably, given getopt()s slightly dainbramaged way of handling commands with or without spacing. It's only sooo often a major annoyance ! (witness e.g. the current wineinstall "su" mess)
But OTOH command line handling/spacing issues are a difficult thing, so maybe it's not even getopt that's to blame, because it's difficult per se. -- Andreas Mohr Stauferstr. 6, D-71272 Renningen, Germany Tel. +49 7159 800604 http://home.arcor.de/andi.mohr/