Languages

Menu
Sites
Language
Can't compile code from Message Port tutorial.

Hello,

I am trying to implement Bi-directional Message Port Communication as described here:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.tutorials/html/native/app_framework/message_port_tutorial_n.htm

But I get compiler error:

error: no matching function for call to 'message_port_register_local_port'

at the line:

int local_port_id = message_port_register_local_port(local_port, message_port_cb);

Please help what is wrong in my code?

View Selected Answer

Responses

2 Replies
Mark as answer
Alex Ashirov

Hi,

Last parameter void *user_data of the message_port_register_local_port() function is missed. Please use something like:

int local_port_id = message_port_register_local_port(local_port, message_port_cb, NULL);

Eric Satkimbaev

Thanks! Not it works.