From: Stan Moore Newsgroups: comp.os.msdos.djgpp Subject: Re: getopt_long? Date: Thu, 24 Aug 2000 18:31:48 -0400 Message-ID: References: <39A12912 DOT 1EFE32EC AT eth DOT ericsson DOT se> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: digital-2-86.exis.net X-Trace: 24 Aug 2000 18:31:46 -0400, digital-2-86.exis.net Lines: 27 Organization: A Customer of Exis Net Inc To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 23 Aug 2000 17:25:29 GMT, Damian Yerrick wrote: >On Tue, 22 Aug 2000 12:46:19 +0600 (LKT), Kalum Somaratna aka Grendel > wrote: > >>No there is no such function unfortunately (getopt_long is a GNU >>extension), so please get the getopt.c and getopt.h from any >>distribution (GZIP etc have it), and just include the getopt.h file in >>your program, compile the getopt.c and link with it. >> >>Thats all, the getopt.c and getopt.h work with djgpp out of the box... > >License? I didn't check the license myself since I only used getopt_long in a small throw away tool for my own use, so I will humbly admit my ignorance of the license issue. However, I did find getopt_long in the libiberty.a library included with at least a couple or djgpp apps. I can't remember the full list bit I found a copy in gdb418b.zip. I used the getopt.h from the corresponding sources. I recently downloaded another djgpp package with a version of libiberty.a that didn't include getopt_long, unfortunately I can't remember which one :(