From: Earnie B. <ear...@ya...> - 2003-02-12 11:45:12
|
Luke Dunstan wrote: > > >> From: "Don Sutter" <dr...@su...> >> To: <Min...@li...> >> Subject: [Mingw-users] getopt for Windows >> Date: Tue, 11 Feb 2003 20:18:52 -0700 >> >> Hi All, >> >> getopt, or perhaps I should say the lack of getopt, in the Windows >> environment seems to be somewhat of a recuring theme. I thought it >> would be easy to find a current copy of getopt.c and just port it to >> Windows myself but it seems to be quite the ellusive creature. Does >> anyone know where that ellusive critter lives? I thought I would be >> able to find it through GNU but I must have missed something. > > > > You probably want the version of getopt in GNU libc. For a smaller > download you could instead get GNU gengetopt, which includes a copy of > getopt.c from GNU libc. Building gengetopt with "configure && make" is > also an easy way to compile getopt, and no porting is required. > Which comes in libiberty.a; however, the getopt.h isn't shipped. I've an idea I'll discuss with the developers. Earnie. |