This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: problem in nested include -- missing a definition?
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: "Linda A. Walsh" <gcc at tlinx dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 31 Oct 2014 22:08:35 +0000
- Subject: Re: problem in nested include -- missing a definition?
- Authentication-results: sourceware.org; auth=none
- References: <5454046E dot 6050101 at tlinx dot org>
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,
from /usr/include/limits.h:25,
from
/usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:168,
from
/usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/syslimits.h:7,
from
/usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/limits.h:34,
from /usr/include/c++/4.8/climits:41,
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++.
What should __BEGIN_DECLS expand to and where should it be defined?
My system has it in <sys/cdefs.h>
/* C++ needs to know that types and declarations are C, not C++. */
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else
# define __BEGIN_DECLS
# define __END_DECLS
#endif