hi there
I have a problem with rtlinux: i am porting a softplc to rtlinux, and i
put all the _np functions in a seperate source file, which is compiled
like this (from my Makefile)
RtsSysRTL.o: RtsSysRTL.c RtsSysRTL.h RtsTypes.h Rtsglb.h RtsSys.h
${CC} -c RtsSysRTL.c ${INCLUDES} ${INCLUDE} ${CFLAGS_EXTRA}
${CFLAGSRT}
$(INCLUDE) contains all the needed directories from rtl.mk, $(CFLAGSRT)
the needed compiler flags from rtl.mk (renamed it there)
but when i run make, i get the following errors:
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
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
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
RtsSysRTL.o: In function `SysTaskDestroy_np':
RtsSysRTL.o(.text+0x2a): undefined reference to `pthread_delete_np'
RtsSysRTL.o: In function `SysTaskSuspend_np':
RtsSysRTL.o(.text+0x7a): undefined reference to `pthread_suspend_np'
RtsSysRTL.o: In function `SysTaskResume_np':
RtsSysRTL.o(.text+0xaa): undefined reference to `pthread_wakeup_np'
collect2: ld returned 1 exit status
make: *** [rtlinuxrts] Error 1
Could someone please give me hint where those undefined references are
coming from? I am new to all this, and i do not know what i am doing
wrong...
I tried a simple rt application (hello world...), ran make -f rtl.mk -o
... whatever is in the docs, and this did work.
So what is the problem with the softplc?
merci
Daniel Krippner
--
[EMAIL PROTECTED]
Student of Communication Engineering/Computer Networking
Furtwangen University of Applied Sciences
-- [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/