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: rmang at ibm dot net
- Date: Thu, 25 May 2000 21:38:01 -0400
- References: <200005251624.MAA21560@smtp10.atl.mindspring.net>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
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.
> On Thu, 25 May 2000 rmang@ibm.net wrote:
>
> > Thi program had compiled under the new setup previously, but now
> > my system cannot link/find correctly the DIR functions. I reinstalled
> > gcc and glibc2, both without error. Any ideas what I am missing /
> > could be wrong? Thnak you for your help.
>
> Have you included dirent.h ?
> A lot of standards have changed since libc 5 (for the better), you
> probably have to adapt your code a little because glibc 2 is more
> compliant with standards such as POSIX, etc...
>
>
> Wolfgang
> --
> A chicken is an egg's way of producing more eggs.
>
>