[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] undefined reference to `pthread_delete_np'
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: utrrandr@savba.sk
SK - 842 37 Bratislava |
Slovakia |
..........................................................................