[anjuta-devel] Linker path for libusb-1.0



Hi all,

[Anjuta 3.10.2]
By making my 'main' the linker shouts:
:
/home/axel/gtk-foobar/src/main.c:141: not defined refernce to `libusb_init'
/home/axel/gtk-foobar/src/main.c:144: not defined refernce to `libusb_open_device_with_vid_pid'
:
in my 'main.c' I included:   

#include <libusb-1.0/libusb.h>

and the appropriate flags in makefile are:

LIBUSB_CFLAGS = -I/usr/include/libusb-1.0 
LIBUSB_LIBS = -lusb-1.0

Librarys installed:
/lib/x86_64-linux-gnu/libusb-0.1.so.4.4.4
/lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
/lib/i386-linux-gnu/libusb-1.0.so.0.1.0

Changing LIBUSB_CFLAGS to /lib/x86_64-linux-gnu/ or /lib/i386-linux-gnu/
has no effect.
The compiler is fine (so the header seems to be ok for me). Did I ran into a quirk due to different usb libs? Or how can I tell to Anjuta the correct lib path?
Lib was added with "Project/add library"

Cheers,
Axel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]