[Suzaku:00252] Re: pthread support

Eike Suthau email@hidden
2005年 2月 23日 (水) 00:12:26 JST


Hello,

I've found out about pthreads via the uClinux mailing list so no need to reply 
to this post.

Regards,
eike
> Hello all,
>
> I'm trying to compile an application with Posix thread support.
> Thus I include pthread.h in my C file.
>
> At compile time I get:
> mb-gcc  -O2 -g -fomit-frame-pointer   -Dlinux -D__linux__ -Dunix
> -D__uClinux__ -DEMBED -I../uClinux-dist-20040408-suzaku3/lib/uClibc/include
> -I../uClinux-dist-20040408-suzaku3/lib/libm
> -I../uClinux-dist-20040408-suzaku3/lib/libcrypt_old
> -I../uClinux-dist-20040408-suzaku3 -Wall -fno-builtin
> -I../uClinux-dist-20040408-suzaku3//include -Wl,-elf2flt
> -nostartfiles ../uClinux-dist-20040408-suzaku3/lib/uClibc/lib/crt0.o
> -nostdlib -L../uClinux-dist-20040408-suzaku3/lib/uClibc/.
> -L../uClinux-dist-20040408-suzaku3/lib/uClibc/lib
> -L../uClinux-dist-20040408-suzaku3/lib/libm
> -L../uClinux-dist-20040408-suzaku3/lib/libnet
> -L../uClinux-dist-20040408-suzaku3/lib/libdes
> -L../uClinux-dist-20040408-suzaku3/lib/libaes
> -L../uClinux-dist-20040408-suzaku3/lib/libpcap
> -L../uClinux-dist-20040408-suzaku3/lib/libssl
> -L../uClinux-dist-20040408-suzaku3/lib/libcrypt_old
> -L../uClinux-dist-20040408-suzaku3/lib/zlib -o hello hello.o
> -lc /opt/mb-dev/bin/../lib/gcc-lib/microblaze/2.95.3-4/./libgcc.a
> /opt/mb-dev/bin/../lib/gcc-lib/microblaze/2.95.3-4/./../../../../microblaze
>/lib/libc_soft.a -lc
> hello.elf2flt: In function `main':
> /home/eike/Programmierung/uClinux-app/hello.c:85: undefined reference to
> `pthread_create'
> /home/eike/Programmierung/uClinux-app/hello.c:85: undefined reference to
> `pthread_create'
> /home/eike/Programmierung/uClinux-app/hello.c:85: undefined reference to
> `pthread_join'
> /home/eike/Programmierung/uClinux-app/hello.c:85: undefined reference to
> `pthread_join'
>
> Do I need to enable threads within the uClinux configuration? If so how?
>
> Regards,
> eike
> _______________________________________________
> suzaku mailing list
> email@hidden
> http://lists.atmark-techno.com/mailman/listinfo/suzaku



suzaku メーリングリストの案内