The compiler you're using must be Windows-based. Hence, you can't use the dos.h header which is non-standard. If you still want the functionalities of dos.h, you'll have to switch to DOS-based compilers like the ones by Borland. Of course, you'll be able to do similiar things in Pelles' too. Only the function names would vary.