X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "James Calivar" Newsgroups: comp.os.msdos.djgpp Subject: Re: Compile error: getopt.h Date: Thu, 8 Jan 2004 15:15:23 -0500 Organization: Texas Instruments Lines: 30 Message-ID: References: <003f01c3d614$27e895f0$5929120b AT T21jSANCHEZ2> NNTP-Posting-Host: gtbfgdb21.telogy.design.ti.com X-Trace: home.itg.ti.com 1073592923 20954 158.218.103.160 (8 Jan 2004 20:15:23 GMT) X-Complaints-To: usenet AT news DOT ti DOT com NNTP-Posting-Date: 8 Jan 2004 20:15:23 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 "J. L." wrote in message news:003f01c3d614$27e895f0$5929120b AT T21jSANCHEZ2... > James Calivar tuvo a bien escribir: > > > I get the following error when trying to compile some code for > > a project at work: > > > > 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? > > > > There are no header file named getopt.h, but the prototype of > getopt() function is in unistd.h > > Regards > José L. Sanchez Garrido > 'Usenet is a strange place' - Dennis M.Ritchie > > Thanks - that solved my compile problem! I simply commented out the "#include getopt.h" in the main.c that was included in my source code and it went ahead and found getopt from unistd.h. J