From cubranic at stat.ubc.ca  Fri Oct 15 22:53:45 2010
From: cubranic at stat.ubc.ca (Davor Cubranic)
Date: Fri, 15 Oct 2010 13:53:45 -0700
Subject: [Rd] Missing libpthread in RTools
Message-ID: <201010151353.45576.cubranic@stat.ubc.ca>

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



[Rd] Missing libpthread in RTools
Davor Cubranic