This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
20010112 cstdlib failure on Linux
- To: gcc-bugs at gcc dot gnu dot org
- Subject: 20010112 cstdlib failure on Linux
- From: jarausch at belgacom dot net
- Date: Sat, 13 Jan 2001 14:48:26 +0100 (CET)
- Cc: jarausch at igpm dot rwth-aachen dot de
- Reply-To: jarausch at belgacom dot net
Hi,
on Linux glibc 2.1.3 kernel 2.4.0
configure seems to set
#define _GLIBCPP_HAVE_LLDIV_T 1
but this is defined within /usr/include/stdlib.h ONLY IF
__USE_ISOC9X
is defined.
So configure seems to define this, but a normal g++ run
doesn't define it. So it fails within
std_cstdlib.h
A temporary fix is to include
#ifndef __USE_ISOC9X
#define __USE_ISOC9X 1
#endif
just before
#include <stdlib.h>
within std_cstdlib.h
Thanks for looking into it,
Helmut Jarausch
Inst. of Technology
RWTH-Aachen
Germany