Hello,

I want to write RT-Moduls with OOP.

Therefore I want to write a library for my RT-functions in C++. I wrote a
header with my class PeriodicTask (periodic task.h), where all my
memberfunctions and members are declared. And I wrote a file where all the
memberfunctions are defined (periodic_task.cpp).

I set up my Makefile like david olofson told.
I use kernel 2.0.33 with patch 0.6 and the scheduler from paolo mantegazza
from Italy (www.polimi.it)
I use the SusE - Distribution.

Makefile:
> INC = /usr/src/linux
> 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
> CF = -O2 -Wall
>
> periodic_task_tmp.o: periodic_task.cpp periodic_task.h
> g++ -I${INC} ${CF} -D__KERNEL__ -D__RT__ -c periodic_task.cpp -o
> periodic_task_tmp.o
>
> periodic_task.o: periodic_task_tmp.o
> ld -Ur -static -o mod.o $(CB) periodic_task_tmp.o $(CE) -L/usr/lib -lm
> -L/usr/lib/gcc-lib/i486-linux/2.7.2.3/ -lgcc -lg++
> #--------------------------------

I can compile and link this files.


When I write a RT-Modul using these classmemberfunctions, I can compile and
link (Makefile looks the same as above) the modul. But if I load the modul
with insmod I get errormessages like:

unresolved symbol Start_Timer

Start_Timer is a memberfunction from a former declared class.


What is false ? Can anyone told me how I can correct the error ?
Thanks a lot!

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/

Reply via email to