This is related to another topic. Currently it isn't possible to compile code with higher optimisation levels which does include ctype.h from the mingw headers. Some times ago I've started with a special ctype.h for ntoskrnl. The same problem exist for ntdll. - Hartmut