when i try to use a stuct in a second struct like this:
Code: Select all
struct s1{
  byte b1;
};
struct s2 {
  s1 s;
  byte b2;
};Code: Select all
C:\Users\xxx\AppData\Local\Temp\build6209164666085632177.tmp\_test_ucxx.c:272: syntax error: token -> 'static' ; column 11
Error. SDCC returned: 1Code: Select all
struct s1 
{
     unsigned char b1;
};
struct s2 
{
     static struct s1 __xdata s;
     unsigned char b2;
};thank you for your answers