1 Reply Latest reply on Oct 3, 2013 9:54 PM by prajith.cheerakkoda

    Example1 from CyAPI: LNK2019: unresolved external symbol

    r.r

      Hello.

         

      I am having issues to run the Example1 from CyAPI.pdf.

         

      I have included a copy of my project in the attachment.

         

      Config: win7 32bits / visual studio 2010 / sdk 1.3

         

      I would really appreciate any help or hint.

         

       

         

       

         

      1>------ Build started: Project: Example1, Configuration: Debug Win32 ------
      1>Build started 10/3/2013 1:28:29 PM.
      1>InitializeBuildStatus:
      1>  Touching "Debug\Example1.unsuccessfulbuild".
      1>GenerateTargetFrameworkMonikerAttribute:
      1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
      1>ClCompile:
      1>  All outputs are up-to-date.
      1>  All outputs are up-to-date.
      1>  All outputs are up-to-date.
      1>CoreResGen:
      1>  All outputs are up-to-date.
      1>ResourceCompile:
      1>  All outputs are up-to-date.
      1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiDestroyDeviceInfoList@4 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
      1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiEnumDeviceInterfaces@20 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
      1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ)
      1>CyAPI.lib(CyAPI.obj) : error LNK2019: unresolved external symbol __imp__SetupDiGetDeviceInterfaceDetailA@24 referenced in function "public: bool __thiscall CCyUSBDevice::CreateHandle(unsigned char)" (?CreateHandle@CCyUSBDevice@@QAE_NE@Z)
      1>c:\Users\labuser\Documents\Visual Studio 2010\Projects\Example1\Debug\Example1.exe : fatal error LNK1120: 4 unresolved externals
      1>
      1>Build FAILED.
      1>
      1>Time Elapsed 00:00:00.53
      ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========