Undefined References
Luis Vaz
vaz.luisd at gmail.com
Mon Nov 5 20:43:52 CET 2007
Solved!
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:
/lib/liblxrt.so
./lib/librtdm.so
add -llxrt -lrtdm to your linking libs.
Regards,
Leo
Hi,
Try to add -llxrt in your LDFLAGS, so for example make LDFLAGS+=-llxrt
Greetings,
Dusan.
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:
> rtdm/rtdm.h
>
> 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.
>
> Thanks,
> Luis Vaz
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.rtai.org/pipermail/rtai/attachments/20071105/17ea12f1/attachment.htm
More information about the Rtai
mailing list