Search code examples
cintellisensevisual-studio-2015wdk

WDK, intellisense and C: "command-line error: exception handling option can be used only when compiling C++ driver"


I want to write a kernel driver using Visual Studio 2015, so I installed the Windows 10 SDK and WDK alongside with VS 2015.

I created empty kernel driver project and main.c inside the project.

However, intellisense does not work and error list shows:

"command-line error: exception handling option can be used only when compiling C++ driver"

I suppose VS wants me to code my project on c++ but I don't want to code on c++. I hate casting when allocating memory etc. Are there any workaround for this?

Thanks


Solution

  • Visual Studio 2015 Update 1 recently released. The problem is now gone, everything works as usual.