This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: gcc compile errors with dirent.h (DIR) and glibc2
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: Re: gcc compile errors with dirent.h (DIR) and glibc2
- From: Wolfgang Sourdeau <wolfgang at ultim dot net>
- Date: Thu, 25 May 2000 22:48:27 -0400 (EDT)
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
On Thu, 25 May 2000 rmang@ibm.net wrote:
> Weird, but none of my so called "new" programs can tell in glibc2
> wether I have dirent.h and dir.h included. They all search for IFDEF
> DIR_H and DHAVE_DIR, but I guess glibc2 does not define these
> values. Forcing an include in the offending .c files seems to do the
> trick. Thanks for the help!
>
> Rob M.
THe Makefiles of your programs certainly put those values explicitly on
the gcc command-line. In most of the gnu packages, the Makefiles are
created by a configure script, located at the top source directory.
It runs a few tests to determine the configuration of your system and
these determines which value to define or not at compile-time.
Wolfgang
--
A chicken is an egg's way of producing more eggs.