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?<br>
<br>Juan.<br><br><div class="gmail_quote">On Thu, Dec 22, 2011 at 2:11 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

There is no libthread.a for RTEMS. When configured with pthreads enabled, they are in librtemscpu.a.<br>
<br>
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.<br>
<br>
--joel<br>
<span><font color="#888888"><br>
--joel<br>
</font></span><div><div><br>
Juan Oviedo <<a href="mailto:juanoctaviooviedo@gmail.com" target="_blank">juanoctaviooviedo@gmail.com</a>> wrote:<br>
<br>
>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..<br>


><br>
>Thanks.<br>
><br>
>Juan.<br>
</div></div></blockquote></div><br>