Hello,
I want to write an RTLinux application (test_períod.cpp) with periodic tasks
in C++. I can compile and link the application but if load my module with
insmod I get the errors like unresolved symbol free, unresolved symbol
_GLOBAL_OFFSET_TABLE_, unsresolved symbol __throw, etc.
all: test_period_tmp.o test_period.o
I use kernel 2.0.33, RT Patch rtlinux-0_6-2_0_33.tgz und Montegazza's
myrtlinux-0_6.tgz and the SusE - Distribution from Linux.
If I write the application with periodic tasks in C everything works .
I use the makefile that I got from the mailing list:
----------------------------------------------------------------------------
--------------------------------------
# the path to the rt-linux kernel
RTLINUX = /usr/src/linux
CFLAGS = -O2 -Wall
CB = /usr/lib/gcc-lib/i486-linux/2.7.2.3/crtbegin.o
CE = /usr/lib/gcc-lib/i486-linux/2.7.2.3/crtend.o
test_period_tmp.o: test_period.cpp
g++ -I${RTLINUX}/include ${CFLAGS} -D__KERNEL__ -D__RT__ -c
test_period.cpp -o test_period_tmp.o
test_period.o: test_period_tmp.o
ld -Ur -static -o test_period.o $(CB) test_period_tmp.o
$(CE) -L/usr/lib -lm -L/usr/lib/gcc-lib/i486-linux/2.7.2.3/ -lgcc -lg++
clean:
rm -f test_period.o test_period_tmp.o
----------------------------------------------------------------------------
------------------------------------------------------
Where does these errors come from and how can I avoid them ?
Another question is the problem with the new and delete function. I use the
redefined operators new and delete from David Olofson. But I wrote on the
mailing list that I cannot create an instance of a class with the new
operator in an RT Task. Is this true and if yes how can I create instances
of classes with new ? Do I have to write my own memory management ? Can I
use kmalloc in an RT Task ?
Thanks in advance
Christian
Krones AG
Boehmerwaldstrasse 5
93068 Neutraubling
Tel.: (0 94 01) 70 - 0 Fax: (0 94 01) 70 - 24 88
--- [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/