Windows driver development - Compilation... If you are getting the error fatal error C1007: unrecognized flag '-typedil' in 'p2' LINK : fatal error LNK1257: code generation failed or fatal error C1007: unrecognized flag '-typedil' in 'p2' LINK : fatal error LNK1257: code generation failed The issue I have found is that you are using the cl.exe version 14 and link.exe version 8 from the WinDDK fold