Dear List,

Iīve tried to compile a rtai-lxrt-example programm with my own makefile,
but linking failed:

make -k 
gcc -I/usr/src/linux/include -I/opt/RTAI/rtai-1.5/include
-I/opt/RTAI/rtai-1.5/lrxt -O2 -o user_hrt user_hrt.c
/tmp/ccmYvcaC.o: In function `main':
/tmp/ccmYvcaC.o(.text+0x2ec): undefined reference to
`rt_usp_signal_handler'
/tmp/ccmYvcaC.o(.text+0x351): undefined reference to
`rt_make_hard_real_time'
/tmp/ccmYvcaC.o(.text+0x4d4): undefined reference to
`rt_make_soft_real_time'
/tmp/ccmYvcaC.o(.text+0x4d9): undefined reference to
`rt_make_hard_real_time'
/tmp/ccmYvcaC.o(.text+0x4de): undefined reference to
`rt_make_soft_real_time'
/tmp/ccmYvcaC.o(.text+0x4e3): undefined reference to
`rt_make_hard_real_time'
/tmp/ccmYvcaC.o(.text+0x622): undefined reference to
`rt_make_soft_real_time'
collect2: ld returned 1 exit status
make: *** [user_hrt] Error 1

Compilation exited abnormally with code 2 at Fri Oct 27 14:39:20

I think it must be easy, but I havenīt found the trick...

Here is the makefile:

all  = user_hrt

RTAI_HOME = /opt/RTAI/rtai-1.5
LINUX_HOME = /usr/src/linux

INCLUDE = -I$(LINUX_HOME)/include -I$(RTAI_HOME)/include
-I$(RTAI_HOME)/lrxt

user_hrt: user_hrt.c
        gcc $(INCLUDE) -O2 -o $@ $<

What went wrong? Many thanks,

Sven
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to