"Unresolved external symbol" error when building driver with Control Flow Guard

  • Thread starter Thread starter Flying Toaster1
  • Start date Start date
F

Flying Toaster1

Guest
There's a Windows driver I'm working on, using Visual Studio 2015 and the Windows 10 SDK. When I enable Control Flow Guard (/guard:cf), the driver fails to build with this link error:

error LNK2019: unresolved external symbol __guard_check_icall_thunk referenced in function "[thunk]: __cdecl IDispatch::`vcall'{48,{flat}}' }'" (??_9IDispatch@@$BDA@AA)

2> fatal error LNK1120: 1 unresolved externals


Is there a library I need to link to when building a driver with Control Flow Guard? Is Control Flow Guard even supported for Windows drivers?

Continue reading...
 
Back
Top