none
Ndew down load vs15 with kitgs USB demo app does not build because of a bad path with \\cfg_support_v1.lib RRS feed

  • Question

  • Because usbser is updated and no longer compatible with installed user base 

    We were attempting to update the app to use winusb. 

    Downloaded most recent vs 15 with all  options

    usb demo app will not build because the path to cfg_support_v1.lib is incorrect.

    It has a double slash rather than a single slash .....\km\x84\\cfg_support_v1.lib

    The same error occurs for x86

    Severity Code Description Project File Line Suppression State
    Error LNK1181 cannot open input file 'C:\Program Files (x86)\Windows Kits\10\lib\10.0.10586.0\km\x64\\cfg_support_v1.lib' USB Application2 c:\Users\cjmac\OneDrive\documents\visual studio 2015\Projects\USB Application2\USB Application2\LINK 1

    Error LNK1181 cannot open input file 'C:\Program Files (x86)\Windows Kits\10\lib\10.0.10586.0\km\x64\\cfg_support_v1.lib' USB Application2 c:\Users\cjmac\OneDrive\documents\visual studio 2015\Projects\USB Application2\USB Application2\LINK 1

    Monday, August 29, 2016 8:49 PM

All replies

  • this is not a default lib so your vcxproj is referring to the lib file. what does the entry in vcxproj look like for the linker settings?

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

    Tuesday, August 30, 2016 5:43 AM
  • Probably the folder c:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\km\ is missing from your computer.

    If you have c:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\ folder you can find here the missing library.

    Tuesday, August 30, 2016 1:11 PM
  • This is immediately following a download install of the latest vs2015 with all options, because downloading with the wdk was the newly recommended procedure.

    All of the libs are there and a search for CFG_SUPPORT_V1.lib finds the libs in the proper directories. The only difference is that gthe path used by the winusb example build has an extra slash.

    I suggest the this is a "new" error introduced by the recent updates.

    I do not find any specific reference to this lib or include in the configuration of the project

    It is built by selecting new project c++ windows driver application winusb

    The linker command line is 

    /OUT:"c:\users\cjmac\onedrive\documents\visual studio 2015\Projects\USB Application3\Debug\USBApplication3.exe" /MANIFEST /NXCOMPAT /PDB:"c:\users\cjmac\onedrive\documents\visual studio 2015\Projects\USB Application3\Debug\USBApplication3.pdb" /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" "winusb.lib" "setupapi.lib" /MACHINE:X86 /WX /INCREMENTAL:NO /PGD:"c:\users\cjmac\onedrive\documents\visual studio 2015\Projects\USB Application3\Debug\USBApplication3.pgd" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"Debug\USBApplication3.exe.intermediate.manifest" /ERRORREPORT:PROMPT /NOLOGO /TLBID:1 

    CFG_SUPPORT_V1 does not appear as an extern dependancy in the project explorer

    Wednesday, August 31, 2016 12:33 PM
  • The issue appears to be that the file is in fact missing from the 10.0.10586.0 path while it is in the other paths.

    If I copy the file from the 10.0.14393.0 path the build succeeds. I have not yet tested it and there may be a difference which makes a difference.

    Wednesday, August 31, 2016 3:19 PM
  • See here for a proposed WA:

    https://social.msdn.microsoft.com/Forums/windowshardware/en-US/88254bfb-9c9d-413d-9c42-86598c848ecf/updated-hardware-dev-kits-for-windows-10-version-1607-are-now-available-august-2016?forum=wdk

    Thursday, September 8, 2016 4:36 AM