Nov 12, 2020
03:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 12, 2020
03:53 PM
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:
int
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.
1 Reply
Nov 18, 2020
10:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 18, 2020
10:50 PM
Hello,
Thank you for pointing out to the issue. We will look into it and take the necessary actions.
Thanks,
Yatheesh