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

  • Question

  • 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?

    • Edited by Flying Toaster1 Tuesday, October 9, 2018 9:08 PM Added more details
    Tuesday, October 9, 2018 9:06 PM


All replies