[Clp] Clp trunk - windows problem
ycollette.nospam at free.fr
ycollette.nospam at free.fr
Tue Jul 29 07:56:44 EDT 2014
Hello,
I tried to compile Cbc / Clp trunk under windows with the intel compiler and I found a problem: there is no nanosleep function under windows.
I found an equivalent function for windows: Sleep which take a number of milliseconds as argument.
#ifdef _WINDOWS
#include <windows.h>
#else
#include <unistd.h>
#define Sleep(x) usleep((x)*1000)
#endif
Then use like this:
Sleep(how_many_milliseconds);
Best regards,
YC
More information about the Clp
mailing list