Menu
Sites
Language
Native app: Hello World Error

Hello 

To start with Native App development I'm following the Hello World tutorial.

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.appprogramming/html/tutorials/ui_tutorial/helloworld_tutorial.htm

I'm facing following errors. 

../src/basicui1.c:121:55: error: use of undeclared identifier 'clicked_cb'
           evas_object_smart_callback_add(button, "clicked", clicked_cb, NULL);
                                                             ^
../src/basicui1.c:150:28: error: expected ')'
clicked_cb(void *user_data __UNUSED__ , Evas_Object *obj __UNUSED__ , void *event_info __UNUSED__)
                           ^
../src/basicui1.c:150:11: note: to match this '('
clicked_cb(void *user_data __UNUSED__ , Evas_Object *obj __UNUSED__ , void *event_info __UNUSED__)
          ^
2 errors generated.
src/subdir.mk:18: recipe for target 'src/basicui1.o' failed
make: *** [src/basicui1.o] Error 1

 

Any idea, what I'm missing? 

Responses

1 Replies
Daniel Juyung Seo

Thanks Sanjeev.

Yes clicked_cb() function was used before it is declared.

I am not the author but I will update the documentation.

Thanks.