[Rd] Missing libpthread in RTools
cubranic at stat.ubc.ca
Wed Oct 20 01:45:22 CEST 2010
On 2010-10-15, at 4:39 PM, Duncan Murdoch wrote:
> 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:
>> 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?
Yes, I can. But does it make sense for the compiler to have support for OpenMP (i.e., allow -fopenmp), but not include its library dependency so that it fails in the linking phase?
More information about the R-devel