This is the mail archive of the
mailing list for the libstdc++ project.
Re: problem in nested include -- missing a definition?
- From: "Linda A. Walsh" <gcc at tlinx dot org>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 31 Oct 2014 15:45:10 -0700
- Subject: Re: problem in nested include -- missing a definition?
- Authentication-results: sourceware.org; auth=none
- References: <5454046E dot 6050101 at tlinx dot org> <20141031220835 dot GR3033 at redhat dot com>
Jonathan Wakely wrote:
On 31/10/14 14:51 -0700, Linda A. Walsh wrote:
I'm getting the following error:
In file included from /usr/include/features.h:364:0,
None of these headers come from libstdc++ except <climits> which just
includes <limits.h> so your problem is with your C library
installation and nothing to do with libstdc++.
From the rpm database, 2 were from glibc, 2 were from
the gcc installation, and 1 from g++. As I wasn't using gcc, they seemed
to be grouped more with g++ than glibc -- thus 60% shot based on my
g++ usage. ;-) Something seems odd with 'features.h' as it said assert.h
was called from 'features.h', but at line number #364 in features.h
I see an include of "sys/cdefs.h" -- the file you say I need.
But from the include listing that g++ puts out, that file isn't included
I.e. @ features.h, I see, included, the file you say it is in, NOT
At features.h#364, I see:
(#361)/* This is here only because every header file already includes
this one. */
(#363)# ifndef _SYS_CDEFS_H
(#364)# include <sys/cdefs.h>
The include-chain list shows "cassert.h" being included @ 364, not
That the file you mention that has the right def (sys/cdefs.h) is
included at the
at the end of the include-list above but before 'cassert.h' seems to
the include-chain list is missing the inclusion of sys/cdefs.h, even though
the "limits.h"@364 has it in the source.
Thanks... at least I have an idea where to kludge around it.