problem linking pthreads

Juan Oviedo juanoctaviooviedo at gmail.com
Tue Dec 27 15:40:15 UTC 2011


Thanks Joel for your answer, but when I compile, I get an error "undefined
reference to `__errno_location'", even if I use "-lrtemscpu". Supposedly
"__errno_location" is defined in pthread library, is it defined somewhere
else in rtems?

Juan.

On Thu, Dec 22, 2011 at 2:11 PM, Joel Sherrill <joel.sherrill at oarcorp.com>wrote:

> There is no libthread.a for RTEMS. When configured with pthreads enabled,
> they are in librtemscpu.a.
>
> You want to configure with rtems threads. We don't want POSIX threads to
> have to be enabled to get thread safe support in gcc runtimes.
>
> --joel
>
> --joel
>
> Juan Oviedo <juanoctaviooviedo at gmail.com> wrote:
>
> >If I want to gcc links against pthread (i.e -lpthread), should I
> mandatorily use the "--enable-threads=POSIX" when configuring gcc? I've
> used "--enable-threads=rtems" for another project and I cannot find
> libpthread.a nor libpthread.so..
> >
> >Thanks.
> >
> >Juan.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20111227/1605b687/attachment.html>


More information about the users mailing list