[BUG REPORT] libusb's function libusb_get_version() Doesn't work lazarus / 68-Other OS ---------------------------------------------------------------------- gasensor · 2024-06-24 12:09 libusb's function libusb_get_version() Doesn't work in /fpcsrc/packages/libusb/src/libusb.pp  line1138: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  function libusb_get_version():libusb_version;LIBUSB_CALL;external libusb1; "libusb_version" should be "plibusb_version" The return value should be a pointer rather than a structure value. https://gitlab.com/freepascal.org/fpc/source/-/issues/40829 Libusb does not have an example project, which is difficult for beginners to use. ---------------------------------------------------------------------- Zvoni · 2024-06-24 12:43 Agreed. https://libusb.sourceforge.io/api- 1.0/group__libusb__misc.html#ga61d07b01404fdea080cd16c1ed8be93d Quoteconst struct libusb_version *    libusb_get_version (void)     Returns a pointer to const struct libusb_version with the version (major, minor, micro, nano and rc) of the running library.