RTGUI 自带的 DEMO 有问题
本帖最后由 Volftooth 于 2012-6-25 00:20 编辑我使用的 RTT 版本是 1.00、
里面自带的 DEMO 编译之后出来很多错误、
Build target 'RT-Thread STM32'
compiling demo_gui_animation.c...
..\..\examples\rtgui_win\demo_gui_animation.c(64): error:#20: identifier "PVOID" is undefined
..\..\examples\rtgui_win\demo_gui_animation.c(69): error:#20: identifier "rtgui_dc_t" is undefined
..\..\examples\rtgui_win\demo_gui_animation.c(69): error:#20: identifier "dc" is undefined
..\..\examples\rtgui_win\demo_gui_animation.c(70): error:#268: declaration may not appear after executable statement in block
..\..\examples\rtgui_win\demo_gui_animation.c(109): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "rtgui_widget_t *"
..\..\examples\rtgui_win\demo_gui_animation.c(111): error:#136: struct "rtgui_view" has no field "gc"
compiling demo_gui_buffer_animation.c...
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(15): error:#20: identifier "rtgui_dc_t" is undefined
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(18): error:#20: identifier "rtgui_dc_t" is undefined
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(18): error:#20: identifier "dc" is undefined
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(19): error:#268: declaration may not appear after executable statement in block
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(20): error:#268: declaration may not appear after executable statement in block
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(26): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "rtgui_widget_t *"
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(31): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "rtgui_widget_t *"
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(60): error:#20: identifier "PVOID" is undefined
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(98): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "rtgui_widget_t *"
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(100): error:#136: struct "rtgui_view" has no field "gc"
..\..\examples\rtgui_win\demo_gui_buffer_animation.c(110): error:#136: struct "rtgui_view" has no field "gc"
compiling demo_gui_button.c...
..\..\examples\rtgui_win\demo_gui_button.c(21): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "const char *"
..\..\examples\rtgui_win\demo_gui_button.c(21): error:#140: too many arguments in function call
..\..\examples\rtgui_win\demo_gui_button.c(23): error:#136: struct "rtgui_button" has no field "gc"
..\..\examples\rtgui_win\demo_gui_button.c(25): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "const char *"
..\..\examples\rtgui_win\demo_gui_button.c(25): error:#140: too many arguments in function call
..\..\examples\rtgui_win\demo_gui_button.c(26): error:#136: struct "rtgui_button" has no field "gc"
..\..\examples\rtgui_win\demo_gui_button.c(28): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "const char *"
..\..\examples\rtgui_win\demo_gui_button.c(28): error:#140: too many arguments in function call
..\..\examples\rtgui_win\demo_gui_button.c(31): error:#136: struct "rtgui_button" has no field "gc"
..\..\examples\rtgui_win\demo_gui_button.c(33): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "const char *"
..\..\examples\rtgui_win\demo_gui_button.c(33): error:#140: too many arguments in function call
..\..\examples\rtgui_win\demo_gui_button.c(36): error:#136: struct "rtgui_button" has no field "gc"
compiling demo_gui_checkbox.c...
..\..\examples\rtgui_win\demo_gui_checkbox.c(21): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "const char *"
..\..\examples\rtgui_win\demo_gui_checkbox.c(21): error:#167: argument of type "char *" is incompatible with parameter of type "rt_bool_t"
..\..\examples\rtgui_win\demo_gui_checkbox.c(21): error:#140: too many arguments in function call
..\..\examples\rtgui_win\demo_gui_checkbox.c(23): error:#136: struct "rtgui_checkbox" has no field "gc"
..\..\examples\rtgui_win\demo_gui_checkbox.c(25): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "const char *"
..\..\examples\rtgui_win\demo_gui_checkbox.c(25): error:#167: argument of type "char *" is incompatible with parameter of type "rt_bool_t"
..\..\examples\rtgui_win\demo_gui_checkbox.c(25): error:#140: too many arguments in function call
..\..\examples\rtgui_win\demo_gui_checkbox.c(26): error:#136: struct "rtgui_checkbox" has no field "gc"
..\..\examples\rtgui_win\demo_gui_checkbox.c(28): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "const char *"
..\..\examples\rtgui_win\demo_gui_checkbox.c(28): error:#167: argument of type "char *" is incompatible with parameter of type "rt_bool_t"
..\..\examples\rtgui_win\demo_gui_checkbox.c(28): error:#140: too many arguments in function call
..\..\examples\rtgui_win\demo_gui_checkbox.c(30): error:#136: struct "rtgui_checkbox" has no field "gc"
..\..\examples\rtgui_win\demo_gui_checkbox.c(32): error:#167: argument of type "rtgui_view_t *" is incompatible with parameter of type "const char *"
..\..\examples\rtgui_win\demo_gui_checkbox.c(32): error:#167: argument of type "char *" is incompatible with parameter of type "rt_bool_t"
..\..\examples\rtgui_win\demo_gui_checkbox.c(32): error:#140: too many arguments in function call
..\..\examples\rtgui_win\demo_gui_checkbox.c(34): error:#136: struct "rtgui_checkbox" has no field "gc"
compiling demo_gui_combobox.c...
..\..\examples\rtgui_win\demo_gui_combobox.c(9): error:#20: identifier "rtgui_listbox_item_t" is undefined
...........................
是 DEMO 再移植的时候没处理好么?、 很明显,你使用的是rtgui_win,这个并不是RTGUI的demo,这部分代码不应该进入发布应该遗弃的。
页:
[1]