From murdoch.duncan at gmail.com  Sat Oct 16 01:39:53 2010
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 15 Oct 2010 19:39:53 -0400
Subject: [Rd] Missing libpthread in RTools
In-Reply-To: <201010151353.45576.cubranic@stat.ubc.ca>
References: <201010151353.45576.cubranic@stat.ubc.ca>
Message-ID: <4CB8E649.2070709@gmail.com>

On 15/10/2010 4:53 PM, Davor Cubranic wrote:
> It appears that Mingw gcc included in RTools is missing a dependent
> library. If I compile a program with '-lgomp' switch (for OpenMP
> support), I get a errors about undefined references to functions like
> '_imp__pthread_mutex_destroy'. Adding the '-static' switch, I get the
> following error:
>
>      c:/rtools/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe:
> cannot find -lpthread
>
> Sure enough, there is neither libpthread.a nor libpthread.dll under
> RTools' installation directory. I think these library are standard in
> Cygwin. Is there any chance to include them in RTools, too?

Rtools is for building R, and that library isn't needed in R.  If you 
want it for some particular purpose, can't you just install a copy on 
your machine?

Duncan Murdoch

>
> Davor
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Missing libpthread in RTools
Duncan Murdoch