Daniel,

I suppose you are putting together a RT module for insmod here. 

First, have a look for RTL examples for _correct_ gcc options, these are
obviosly not OK.

> 
> gcc -c rts.c -I. -I/usr/src/linux/include -O0 -g3 -Wall
> -I/usr/src/rtlinux-2.2/include -DHANDLE_WIN32_PRAGMA -DALIGNATTRIB=
> -D_REENTRANT -DRTLinux

instead of 

> gcc -o rts.o RtsApi.o RtsCst.o RtsDevMan.o RtsIec.o RtsSys.o RtsTrace.o
> TCPIPDrv.o RtsCM.o RtsCtrl.o RtsFile.o RtsNWMan.o RtsWdg.o RtsCfg.o
> RtsDbg.o RtsIOMan.o RtsSrv.o RtsTask.o rtstrg.o RtsSysRTL.o  -lm
> -lpthread

you should use something like

ld -r your_objects -o your_module_name -l_your_optional_libreries

Regards,

-- 
..........................................................................
Pavel Andris                               | tel: +421 7 5941 2167
Institute of Control Theory and Robotics   | fax: +421 7 5477 6045
Slovak Academy of Sciences                 | 
Dubravska cesta 9                          | e-mail: [EMAIL PROTECTED]
SK - 842 37 Bratislava                     |
Slovakia                                   |
..........................................................................
-- [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