Hi,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 statusor with different compiler 
options I get:pthread.elf2flt: In function `main':: undefined reference to 
`pthread_create'pthread.elf2flt: In function `main':: undefined reference to 
`pthread_create'pthread.elf2flt: In function `main':: undefined reference to 
`pthread_join'pthread.elf2flt: In function `main':: undefined reference to 
`pthread_join'collect2: ld returned 1 exit statusThese errors make me think 
that my libpthread.a library is not complete.What is the problem?Do I have to 
rebuild the library?  If so, how?Thanks,Chris
_________________________________________________________________
Download Messenger. Start an i’m conversation. Support a cause. Join now.
http://im.live.com/messenger/im/home/?source=TAGWL_MAY07
_______________________________________________
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