Hi ctime_r is incorrectly defined in pthread.h. Please change _clock to _tm or vice versa. #define ctime_r( _clock, _buf ) \ ( strcpy( (_buf), ctime( (_tm) ) ), \ (_buf) ) Regards Magnus