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

    Example1 from CyAPI: LNK2019: unresolved external symbol

    r.r

      Hello.

         

      I have been trying to follow the steps to create the Example 1 in cpp from CyAPI.pdf.

         

      I am using Visual Studio 2010 / Win 7 32bits / sdk 1.3 but run into the following issue.

         

      I attached a rar version of my project so you can have more details.

         

      please let me know what's wrong, I have double checked each step of the pdf and cannot manage to find the mistake

         

       

         

      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 ==========