语言

Menu
Sites
Language
animation example error

Hi, so I'm trying to build the example project found at https://developer.tizen.org/community/tip-tech/animations-tizen-native-application but I'm getting this errors:

  • implicit declaration of function 'LOGE' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

found at 

main(int argc, char *argv[])
{
    appdata_s ad = {0,};
    app_event_callback_s event_callback;

    event_callback.create = app_create;
    event_callback.terminate = app_terminate;
    event_callback.pause = app_pause;
    event_callback.resume = app_resume;
    event_callback.app_control = NULL;

    event_callback.low_memory = NULL;
    event_callback.low_battery = NULL;
    event_callback.device_orientation = NULL;
    event_callback.region_format_changed = NULL;

    int ret = app_efl_main(&argc, &argv, &event_callback, &ad);
    if (ret != APP_ERROR_NONE) {
        LOGE("app_efl_main() is failed. err = %d", ret);
    }

    return ret;
}
  • ninja: build stopped: subcommand failed.    Animation             C/C++ Problem
查看选择的答案

响应

1 回复
Mark as answer
Yasin Ali

Hi,

In animation.c file add this line @top.

#define LOGE(msg, ret)   dlog_print(DLOG_VERBOSE,"Test",msg,ret)

Now clean and build your project again. Run your project.
Go to log view -> select log level verbose as "V" (deselect others
if you do not need others ). Here you will find your log message with
log tag "Tast".

You may try to see it's working using following code hints:

int
main(int argc, char *argv[]) //  App starting point
{    
 LOGE("Hello = %d", 100); //  Immediate Execution Statement
 .....
 .....
}

Hope it will help you.
If you find my post is helpful for you, please mark it as the Best Answer to promote this post to others.