4

I am following this guide

https://msdn.microsoft.com/en-us/library/windows/hardware/hh439665(v=vs.85).aspx

I am using visual studio 2015 with wdk 10. However, when i am trying to build the solution (step 14), I get the following error:

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

Any ideas ?

Thank you

2 Answers2

2

It's simple. There is a bug in VS 2015. You need to wait for VS 2015 Update 1, there is no workaround.

Backs
  • 24,430
  • 5
  • 58
  • 85
0

https://connect.microsoft.com/VisualStudio/feedback/details/1623363/error-command-line-error-exception-handling-option-can-be-used-only-when-compiling-c

C++ is usually not used in kernel mode drivers because it is not supported.

I see this same issue with VS 2015. Just create a blank C file in your project and you will see the intellisense (~) at the first column of the first line. This means intellisense is essentially broken for all C source files now.

Esqarrouth
  • 38,543
  • 21
  • 161
  • 168