none
moving from WDK 9200 to 9600 on VS 2012 arm platform cause the link error: unresolved external symbol __guard_fids_table RRS feed

  • Question

  • I compiled my project arm platform with HID driver successfully with 9200.

    I moved to WDK 9600 - running with Visual Studio 2012. and had a link error as the following:

    I tried work around of adding

    <KernelBufferOverflowLib>$(DDK_LIB_PATH)\BufferOverflowK.lib</KernelBufferOverflowLib>

    or

    <KernelBufferOverflowLib>$(DDK_LIB_PATH)\BufferOverflowFastFailK.lib</KernelBufferOverflowLib>

    to my proj and it did not help...

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

    Please see log bellow of error

    1>  myhidf.c

    2>cl : Command line warning D9025: overriding '/GL' with '/GL-'

    2>  myStream.cpp

    1>  myhidf.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance

    1> 

    1>  Searching libraries

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winv6.3\UM\ARM\armrt.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\wdmsec.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\BufferOverflowFastFailK.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\ntoskrnl.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\hal.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\wmilib.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\wdf\kmdf\arm\1.11\WdfLdr.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\wdf\kmdf\arm\1.11\WdfDriverEntry.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winv6.3\UM\ARM\armrt.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\wdmsec.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\BufferOverflowFastFailK.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\ntoskrnl.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\hal.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\wmilib.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\wdf\kmdf\arm\1.11\WdfLdr.lib:

    1> 

    1>  Finished searching libraries

    1>  Generating code

    1>  Finished generating code

    1> 

    1>  Searching libraries

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winv6.3\UM\ARM\armrt.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\wdmsec.lib:

    1> 

    1>  Finished searching libraries

    1> 

    1>  Searching libraries

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winv6.3\UM\ARM\armrt.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\wdmsec.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\BufferOverflowFastFailK.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\ntoskrnl.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\hal.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\wmilib.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\wdf\kmdf\arm\1.11\WdfLdr.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\wdf\kmdf\arm\1.11\WdfDriverEntry.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winv6.3\UM\ARM\armrt.lib:

    1>      Searching c:\wdk\9600\Windows Kits\8.1\lib\winV6.3\KM\arm\wdmsec.lib:

    1> 

    1>  Finished searching libraries

    1>BufferOverflowFastFailK.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_fids_table

    1>BufferOverflowFastFailK.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_fids_count

    1>BufferOverflowFastFailK.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_flags

    1>C:\Users\latest\arm\Release\myhidf.sys : fatal error LNK1120: 3 unresolved externals

    Wednesday, May 7, 2014 4:06 PM

All replies

  • The 8.1 WDK is used with VS2013, not VS2012, and thus the VS2013 compiler. Please try with VS2013 and report back

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, May 7, 2014 5:41 PM