X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: 08 Jan 2004 16:25:59 +0200 Message-Id: From: Eli Zaretskii To: djgpp AT delorie DOT com In-reply-to: (amheiser_bush@yahoo.com.au) Subject: Re: Compile error: getopt.h References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "James Calivar" > 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.