This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc compile errors with dirent.h (DIR) and glibc2


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]