delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/24/18:45:20

From: Stan Moore <smoore AT exis DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getopt_long?
Date: Thu, 24 Aug 2000 18:31:48 -0400
Message-ID: <t409qsgg557uh4bm3qge3embeefkrataf2@4ax.com>
References: <39A12912 DOT 1EFE32EC AT eth DOT ericsson DOT se> <Pine DOT LNX DOT 4 DOT 21 DOT 0008221243580 DOT 1758-100000 AT goatbeard DOT grendel DOT net> <j928qsscbl765skc1292ema7k6ioqinm2c AT 4ax DOT com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
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
<Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> wrote:

>On Tue, 22 Aug 2000 12:46:19 +0600 (LKT), Kalum Somaratna aka Grendel
><kalum AT lintux DOT cx> 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 :( 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019