heres what i needed to get this to compile on mingw for windows (not linux cross-compile). tested compilation in cygwin (on windows) too. probably the sleep defines are incorrect, so fix those. also since you now have 4 progs, you might want to invest in common.h for win32 defines and shared code, etc. -compn