Using RTnet in Xenomai 3
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!
Quoted 9 lines · 李冰 via Xenomai
Hi:
I am using RTnet in Xenomai 3 now, and I have wrote a program based on
RTnet_Programmingin 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
Makefileis wrong. So, is there a demo program including code andMakefilethat 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