WhyCan Forum

人过留名,雁过留声,感谢各位朋友不离不弃地支持。 QQ: 516333132 (挖坑网/填坑网) admin@whycan.cn

您尚未登录。

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

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 8,193

分享解决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
注册时间: 2017-09-06
累计积分: 8,193

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
注册时间: 2017-09-06
累计积分: 8,193

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

占位

离线

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

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 8,193

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

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

离线

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

gary
会员
注册时间: 2018-05-30
累计积分: 20

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

经典,我马上改来试下

离线

#6 2018-09-20 22:17:00

qianhao
会员
注册时间: 2017-12-14
累计积分: 122

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

收藏了 涨知识了

离线

#7 2019-01-19 17:55:08

jw__liu
会员
注册时间: 2019-01-18
累计积分: 40

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

长知识

离线

#8 2019-02-13 18:02:33

Leo
会员
注册时间: 2019-02-13
累计积分: 3

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

折腾了我好几个小时没编译成功,看了这个帖子就通过了,谢谢晕哥

离线

#9 2019-02-14 14:38:56

真的是很烦
会员
注册时间: 2018-10-08
累计积分: 106

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

知识点呐,  划重点

离线

#10 2019-11-07 13:30:46

silong1126
会员
注册时间: 2019-11-07
累计积分: 32

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

mark下,感谢。

离线

页脚