[Rd] Missing libpthread in RTools

Davor Cubranic cubranic at stat.ubc.ca
Fri Oct 15 22:53:45 CEST 2010

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?


More information about the R-devel mailing list