vaz.luisd at gmail.com
Mon Nov 5 20:43:52 CET 2007
Really was a link problem...
- add the path /usr/realtime/lib/ to the ldconfig
- add the flags
-L/usr/realtime/lib -llxrt -lrtdm -lpthread to the
when you _link_ is when you receive this messages. Probably you miss to link
with the libraries:
add -llxrt -lrtdm to your linking libs.
Try to add -llxrt in your LDFLAGS, so for example make LDFLAGS+=-llxrt
On Nov 5, 2007 3:52 PM, Luis Vaz <vaz.luisd at gmail.com> wrote:
> Hi everyone!
> I'm creating a little program to test a driver,
> in that program I only do two things:
> - open the device: rt_dev_open()
> - close the device: rt_dev_close()
> To use this functions I do the include of the
> realtime header:
> When I'm compiling the program appears this message:
> In function `RTAI_LXRT':
> canrt_app.c:(.text+0x40e): undefined reference to `rt_is_hard_real_time'
> canrt_app.c:(.text+0x417): undefined reference to `rt_make_soft_real_time'
> canrt_app.c:(.text+0x452): undefined reference to `rt_make_hard_real_time'
> Neither of this functions are used in my program...
> They are used in "rtdm.h" and correctly defined in "rtai_lxrt.h",
> and this header is included in "rtdm.h".
> How can I resolve this? I'm doing anything wrong?
> Any help is useful.
> Luis Vaz
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rtai