Mail Archives: djgpp/2000/08/24/18:45:20
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 -