[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] undefined reference to `pthread_delete_np'




> 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'
...
> 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...

Your gcc called the linker. Use -c switch for compile only.

Regards

Gabor