[gecode-users] [BUG] missing include

Christian Schulte cschulte at kth.se
Wed May 20 17:29:27 CEST 2009


Crap, you are of course right. It'll be fixed for 3.1.0 (aargh rebuilding
all from scratch again).

Thanks
Christian

-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Denys Duchier
Sent: Wednesday, May 20, 2009 4:19 PM
To: users at gecode.org
Subject: [gecode-users] [BUG] missing include

The following include is missing in gecode/support/thread/pthreads.hpp
causing compilation to fail for me (unknown sleep(3) and usleep(3)) in
both 3.1.0 and trunk:

#ifdef GECODE_HAS_UNISTD_H
#include <unistd.h>
#endif

or perhaps more correctly:

#ifdef GECODE_HAS_UNISTD_H
extern "C" {
#include <unistd.h>
}
#endif


--Denys

_______________________________________________
Gecode users mailing list
users at gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users





More information about the gecode-users mailing list