[Rd] Missing libpthread in RTools

From: Davor Cubranic <cubranic_at_stat.ubc.ca>
Date: Fri, 15 Oct 2010 13:53:45 -0700


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?

Davor



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 15 Oct 2010 - 20:56:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 16 Oct 2010 - 01:00:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive