Building memcached 1.4.x on windows error with cygwin
Wed, 04/18/2012 - 01:09
I'm trying to build memcached from couchbase-server_src on Windows. Here's what I get:
configure: error: Can't enable threads without the POSIX thread library.
How to compile memcached from couchbase-server_src on Windows?
I use cygwin x32 with gcc 4.6.0.
Code
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char pthread_create();
int
main() {
return pthread_create();
;
return 0;
}
in the single file (not from configure) compiles fine on my gcc.
Is there something that I've missed?