delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/01/08/17:01:23

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "James Calivar" <amheiser_bush AT yahoo DOT com DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compile error: getopt.h
Date: Thu, 8 Jan 2004 16:51:11 -0500
Organization: Texas Instruments
Lines: 31
Message-ID: <btkjce$1av$1@home.itg.ti.com>
References: <btjn2b$1d9$1 AT home DOT itg DOT ti DOT com> <uvfnm4ivc DOT fsf AT elta DOT co DOT il>
NNTP-Posting-Host: gtbfgdb21.telogy.design.ti.com
X-Trace: home.itg.ti.com 1073598670 1375 158.218.103.160 (8 Jan 2004 21:51:10 GMT)
X-Complaints-To: usenet AT news DOT ti DOT com
NNTP-Posting-Date: 8 Jan 2004 21:51:10 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii" <eliz AT elta DOT co DOT il> wrote in message
news:uvfnm4ivc DOT fsf AT elta DOT co DOT il...
> > From: "James Calivar" <amheiser_bush AT yahoo DOT com DOT au>
> > Newsgroups: comp.os.msdos.djgpp
> > Date: Thu, 8 Jan 2004 08:47:55 -0500
> >
> > main.c:33:20: getopt.h: No such file or directory (ENOENT)
> >
> > According to the DJGPP site, getopt is provided in libc.a, but I don't
see
> > it anywhere in my installation and it's obviously not being found.
Anyone
> > have any ideas?
>
> `getopt' the _function_ is in libc.a, but the compiler complains
> about the _header_file_ getopt.h, which is something different.
> DJGPP doesn't have that header; the prototype declaration of the
> function `getopt' is in unistd.h.
>
> So simply remove line 33 of main.c or ifdef it away, and instead make
> sure that main.c includes unistd.h.
>

Yes, that is exactly what I did, and I now have a working Windows-based .exe
of the reference voice codec for GSM.  Fun stuff!

Thanks all for the help,

J


- Raw text -


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