Quoth chris brooke:
> I am trying to build a simple application to test pthreads on a
> custom 5272 target using the 2.6.x kernel.  I have built the pthread
> library and I use the -lpthread option on the linker. I get the
> following link errors when I try to build the code: .elf2flt: In
> function `main': /home/djjcb/tmp/pthread.c:18: undefined reference to
> `pthread_create' /home/djjcb/tmp/pthread.c:19: undefined reference to
> `pthread_create' /home/djjcb/tmp/pthread.c:25: undefined reference to
> `pthread_join' /home/djjcb/tmp/pthread.c:26: undefined reference to
> `pthread_join'  
> collect2: ld returned 1 exit status

Which RTL are you using?  uClibc?

I don't recall if there's an option for it or not, but it might be worth
looking at the uClibc config.  If there is an option, maybe threading
support was disabled...

make -C uClibc menuconfig

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to