Skip to contentSkip to conversation

Using RTnet in Xenomai 3

DISCUSSION 李冰 2 participants 2 messages Mar 27, 2019 – Apr 2, 2019

lore
Share & tools
lore

李冰

author
#0 lore raw

Hi:

I am using RTnet in Xenomai 3 now, and I have wrote a program based on RTnet_Programming in Xenomai's wiki.

But I got an error when I try to compile my program, the error is “undefined reference to `rt_dev_socket'”.

I think this error occurs because my Makefile is wrong. So, is there a demo program including code and Makefile that uses RTnet in Xenomai 3?

Thanks for spending time to give me some help!

#1 lore raw
Quoted 9 lines · 李冰 via Xenomai

Hi:

I am using RTnet in Xenomai 3 now, and I have wrote a program based on RTnet_Programming in Xenomai's wiki.

Quoted 6 lines

But I got an error when I try to compile my program, the error is “undefined reference to `rt_dev_socket'”.

I think this error occurs because my Makefile is wrong. So, is there a demo program including code and Makefile that uses RTnet in Xenomai 3?

rt_dev_socket is no longer available in Xenomai 3 (unless using the transition kit header). Use socket() directly, and make sure that this symbol is wrapped to the Xenomai library (xeno-config --skin rtdm --ldflags ...).

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux