Content originally posted in LPCWare by DaveNadler on Sat May 14 11:31:42 MST 2011
[FONT=Arial]Hi - I tried to use type "bool" (using LPCXpresso v3.6.3):
[/FONT][INDENT][FONT=Fixedsys]#include <stdint.h>
[/FONT][FONT=Fixedsys]#include <stdbool.h>
[/FONT][FONT=Fixedsys]bool bools__dont_work;[/FONT]
[/INDENT][FONT=Arial]I got the following error:
[/FONT][INDENT][FONT=Fixedsys]../src/main.c:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bools__dont_work'
[/FONT][/INDENT][FONT=Arial]Investigating the include shows:
[/FONT][INDENT][FONT=Fixedsys]#if !defined(__CR4_STDBOOL_H__)
[/FONT][FONT=Fixedsys]# define __CR4_STDBOOL_H__
[/FONT][FONT=Fixedsys]# if defined(__REDLIB__)
[/FONT][FONT=Fixedsys]# include_next <stdbool.h>[/FONT]
[/INDENT][FONT=Arial]Eclipse (and I) are confused by "include_next".
What am I doing wrong ?
Thanks,
Best Regards, Dave
g[/FONT]