Compiling with pthreads

Kevin Kofler kevin.kofler at chello.at
Fri Mar 13 13:57:11 UTC 2009


Daniel P. Berrange wrote:
> win32 pthreads is a mess in this respect. config.h is a file generated
> by their configure.ac,which has all the autoconf HAVE_XXX macros set.
> Even worse, this file is included in pthread.h, thus totally polluting
> your application's namespace. IMHO, this makes win32 pthreads unusable

Ugh. This really needs to be fixed or worked around somehow. Maybe the
unifdef tool can help?

I don't understand why it's doing configure checks at all as it's targeting
a single operating system with a stable API/ABI.

        Kevin Kofler




More information about the mingw mailing list