1 Reply Latest reply on Nov 11, 2019 2:47 AM by SananyaM_56

    CyLibraryInit / Exit in windows?

    AmVa_4469291

      Hey Folks,

       

      I am a junior engineer, so be patient with me.

       

      We wrote some Code (c/c++), which activates 3 Leds in different states: (blue, red, off). Just to test if they are working.

       

      This code works pretty well in Linux, while Windows (VS 2019) giving me some Linkingerrors.

       

      So the only Errors left now, are caused by CyLibraryInit() and CyLibraryExit(). Their information is saying, that those calls are just used for Linux and Mac.

       

      The correct Header is included and the .dll is linked too. Other Codes (without those calls) are working fine.

       

      Is there an equivalent for this calls in windows?

        • 1. Re: CyLibraryInit / Exit in windows?
          SananyaM_56

          Hello,

           

          Please confirm if you are using the cyusbserial.dll library for your application code with USB-Serial device.

          The CyLibraryInit() and CylLibraryExit() functions are used to initialize and free the libusb library when used in Linux or Mac OS. For Windows, they arent required since we are using our own library for the APIs.

           

          Best Regards,

          Sananya