When including stdio.h and building my program, I receive the following error:
/usr/include/stdio.h|30|error: expected identifier or ‘(’ before string constant|
In this slice of code from stdio.h:
1 2 3 4 5 6 7 8 9 10 11 12
#ifndef _STDIO_H
#if !defined __need_FILE && !defined __need___FILE
# define _STDIO_H 1
# include <features.h>
__BEGIN_DECLS //This bit here causes error
# define __need_size_t
# define __need_NULL
# include <stddef.h>
...
I'm not sure if there is a syntax error in this code, something I need to define __BEGIN_DECLS as or atleast nullify it. I can't seem to find anyone with this kind of issue using stdio.h, I also tried to chmod it so I'd be able to modify it, didn't allow me to. ;D
Is anybody familiar with __BEGIN_DECLS or know how to muffle an undefined identifier.. or is it a macro?
Are your compiler settings correct?
Which project type did you start from?
Are you defining anything before the inclusion?
Do you have enabled/disabled any compiler option?
Works in other os's, including Fedora, but not openSUSE, it's compiled correctly, not defined anything extra, nothing is disabled or enabled in compiler flags.
Instead I took out the include (Minini) which caused this error in Windows, I can only presume there was something defined in one of the glue headers which caused stdio.h to throw a compiler error.