挖坑网/填坑网 DebugDump Forum

别人挖坑默默填上,自己挖坑含泪填上。天下没有填不了的坑,只有不会填坑的人。来吧,加入我们,挖坑行,填坑你更行! 站长QQ: 516333132 点击这里给我发消息

您尚未登录。

#1 2018-03-16 09:10:54

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

分享解决littlevgl移植到keil 5.24版本出现的编译错误的办法

分享解决littlevgl移植到keil 5.24版本出现的编译错误的办法

littlevgl 大量用到 gnu扩展和 C99语法,
如果编译器不支持就要对代码大动干戈,
还好 MDK 5.24a 已经对C99和GNU支持很好了,
只需要轻轻设置一下 C/C++ 编译参数即可.

否则,你将会遇到以下恼人的编译错误:

离线

#2 2018-03-16 09:20:00

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 分享解决littlevgl移植到keil 5.24版本出现的编译错误的办法

QQ20180316094254.png

..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\lv_group.c: 3 warnings, 3 errors
compiling lv_indev.c...
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(51): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(81): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(85): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(86): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(111): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\lv_indev.c: 3 warnings, 8 errors
compiling lv_obj.c...
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(51): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(81): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(85): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(86): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(111): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_draw/lv_draw.h(48): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_draw/lv_draw.h(53): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\lv_obj.c(929): warning:  #188-D: enumerated type mixed with another type
        type = type & (~
V_ANIM_DIR_MASK);
..\..\littlevgl\lvgl\lv_core\lv_obj.c(1079): warning:  #111-D: statement is unreachable
        return NULL;
..\..\littlevgl\lvgl\lv_core\lv_obj.c(1097): warning:  #111-D: statement is unreachable
      return NULL;
..\..\littlevgl\lvgl\lv_core\lv_obj.c: 6 warnings, 10 errors
compiling lv_refr.c...
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\lv_refr.c: 3 warnings, 3 errors
compiling lv_style.c...
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\../lv_misc/lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_core\lv_style.c: 3 warnings, 3 errors
compiling lv_vdb.c...
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(51): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(81): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(85): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(86): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_hal/lv_hal_indev.h(111): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_hal/../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_hal/../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\../lv_hal/../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_core\lv_vdb.c: 0 warnings, 8 errors
compiling lv_draw.c...
..\..\littlevgl\lvgl\lv_draw\../lv_core/../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\../lv_core/../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\../lv_core/../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\../lv_core/../lv_misc/lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_draw\../lv_core/../lv_misc/lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_draw\../lv_core/../lv_misc/lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_draw\lv_draw.h(48): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\lv_draw.h(53): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\lv_draw.c(2085): warning:  #111-D: statement is unreachable
      return 0;
..\..\littlevgl\lvgl\lv_draw\lv_draw.c: 4 warnings, 5 errors
compiling lv_draw_rbasic.c...
compiling lv_draw_vbasic.c...
..\..\littlevgl\lvgl\lv_draw\../lv_hal/lv_hal_indev.h(51): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\../lv_hal/lv_hal_indev.h(81): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_draw\../lv_hal/lv_hal_indev.h(85): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_draw\../lv_hal/lv_hal_indev.h(86): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\../lv_hal/lv_hal_indev.h(111): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\../lv_hal/../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\../lv_hal/../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\../lv_hal/../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\../lv_misc/lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_draw\../lv_misc/lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_draw\../lv_misc/lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_draw\lv_draw.h(48): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\lv_draw.h(53): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_draw\lv_draw_vbasic.c: 3 warnings, 10 errors
compiling lv_hal_disp.c...
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(51): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(81): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(85): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(86): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(111): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_core/../lv_misc/lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_hal\../lv_core/../lv_misc/lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_hal\../lv_core/../lv_misc/lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_hal\lv_hal_disp.c: 3 warnings, 8 errors
compiling lv_hal_indev.c...
..\..\littlevgl\lvgl\lv_hal\../lv_hal/../lv_misc/lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/../lv_misc/lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/../lv_misc/lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(51): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(81): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(85): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
          };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(86): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\../lv_hal/lv_hal_indev.h(111): error:  #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_hal\lv_hal_indev.c: 0 warnings, 8 errors
compiling lv_hal_tick.c...
compiling lv_anim.c...
compiling lv_area.c...
compiling lv_circ.c...
compiling lv_color.c...
..\..\littlevgl\lvgl\lv_misc\lv_color.h(76): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_misc\lv_color.h(87): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_misc\lv_color.h(99): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
      };
..\..\littlevgl\lvgl\lv_misc\lv_color.c: 0 warnings, 3 errors
compiling lv_font.c...
..\..\littlevgl\lvgl\lv_misc\lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_misc\lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_misc\lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_misc\lv_font.c(295): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter)
..\..\littlevgl\lvgl\lv_misc\lv_font.c(312): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter)
..\..\littlevgl\lvgl\lv_misc\lv_font.c: 5 warnings, 0 errors
compiling lv_fs.c...
compiling lv_ll.c...
compiling lv_math.c...
compiling lv_mem.c...
..\..\littlevgl\lvgl\lv_misc\lv_mem.c(35): error:  #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
        };
..\..\littlevgl\lvgl\lv_misc\lv_mem.c: 0 warnings, 1 error
compiling lv_task.c...
compiling lv_templ.c...
compiling lv_trigo.c...
compiling lv_txt.c...
..\..\littlevgl\lvgl\lv_misc\lv_font.h(53): warning:  #815-D: type qualifier on return type is meaningless
      const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t);       /*Get a glyph's with with a given font*/
..\..\littlevgl\lvgl\lv_misc\lv_font.h(129): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_misc\lv_font.h(137): warning:  #815-D: type qualifier on return type is meaningless
  const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter);
..\..\littlevgl\lvgl\lv_misc\lv_txt.c: 3 warnings, 0 errors
Project build/rebuild aborted.
Build Time Elapsed:  00:04:30

离线

#3 2018-03-16 09:40:38

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 分享解决littlevgl移植到keil 5.24版本出现的编译错误的办法

占位

离线

#4 2018-03-16 09:41:04

晕哥
Administrator
注册时间: 1970-01-01
累计发帖: 2,505

Re: 分享解决littlevgl移植到keil 5.24版本出现的编译错误的办法

QQ20180316093620.png
不用修改一行代码, 添加 --gnu 支持, 即可编译成功 littlevgl.

离线

#5 2018-05-30 21:22:46

gary
会员
注册时间: 2018-05-30
累计发帖: 9

Re: 分享解决littlevgl移植到keil 5.24版本出现的编译错误的办法

经典,我马上改来试下

离线

页脚