problem in nested include -- missing a definition?

Jonathan Wakely jwakely@redhat.com
Fri Oct 31 22:08:00 GMT 2014


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



More information about the Libstdc++ mailing list