Anyone have luck compiling this? I get the following on my RHEL 7.2 workstation:
Code:
[FONT=courier new]$ gcc ./temperv14.c /tmp/ccXfTjto.o: In function `usb_detach': temperv14.c:(.text+0x50): undefined reference to `usb_detach_kernel_driver_np' /tmp/ccXfTjto.o: In function `setup_libusb_access': temperv14.c:(.text+0xf1): undefined reference to `usb_set_debug' temperv14.c:(.text+0xfd): undefined reference to `usb_set_debug' temperv14.c:(.text+0x102): undefined reference to `usb_init' temperv14.c:(.text+0x107): undefined reference to `usb_find_busses' temperv14.c:(.text+0x10c): undefined reference to `usb_find_devices' temperv14.c:(.text+0x168): undefined reference to `usb_set_configuration' temperv14.c:(.text+0x18e): undefined reference to `usb_claim_interface' temperv14.c:(.text+0x1b4): undefined reference to `usb_claim_interface' /tmp/ccXfTjto.o: In function `find_lvr_winusb': temperv14.c:(.text+0x1de): undefined reference to `usb_busses' temperv14.c:(.text+0x249): undefined reference to `usb_open' /tmp/ccXfTjto.o: In function `ini_control_transfer': temperv14.c:(.text+0x2ea): undefined reference to `usb_control_msg' /tmp/ccXfTjto.o: In function `control_transfer': temperv14.c:(.text+0x426): undefined reference to `usb_control_msg' /tmp/ccXfTjto.o: In function `interrupt_transfer': temperv14.c:(.text+0x5c0): undefined reference to `usb_interrupt_write' temperv14.c:(.text+0x5ff): undefined reference to `usb_interrupt_read' temperv14.c:(.text+0x683): undefined reference to `usb_release_interface' /tmp/ccXfTjto.o: In function `interrupt_read': temperv14.c:(.text+0x73f): undefined reference to `usb_interrupt_read' /tmp/ccXfTjto.o: In function `interrupt_read_temperatura': temperv14.c:(.text+0x86c): undefined reference to `usb_interrupt_read' /tmp/ccXfTjto.o: In function `bulk_transfer': temperv14.c:(.text+0x9be): undefined reference to `usb_bulk_write' temperv14.c:(.text+0x9fd): undefined reference to `usb_bulk_read' temperv14.c:(.text+0xa74): undefined reference to `usb_release_interface' /tmp/ccXfTjto.o: In function `main': temperv14.c:(.text+0xfb2): undefined reference to `usb_release_interface' temperv14.c:(.text+0xfc3): undefined reference to `usb_release_interface' temperv14.c:(.text+0xfcf): undefined reference to `usb_reset' collect2: error: ld returned 1 exit status[/FONT]
Comment