1 Reply Latest reply on Nov 18, 2020 10:50 PM by YatheeshK_36

    Possible bug in cyusb_linux_1.0.5 library


      Was working on some download code and hit a linker error:


      somefile.cpp:829: undefined reference to `cyusb_download_fx3(libusb_device_handle*, char*)'

      collect2: error: ld returned 1 exit status


      after some debug found in the libcyusb.cpp the function has this prototype:


      cyusb_download_fx3 (

      cyusb_handle *h,

              const char *filename)


      but in the cyusb.h file in the include directory the prototype is:

      extern int cyusb_download_fx3(cyusb_handle *h, char *filename);


      if I change the libcyusb.cpp from "const char *filename)" to "char *filename)" and rebuild everything my code now links as expected.