This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem in nested include -- missing a definition?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]