Re: Re: [Xpert]mouse configuration

Michael Toomim <[email protected]> Tue, 07 Jan 2003 21:28:54 -0800
Newsgroups gmane.comp.xfree86.expert
Message-ID <[email protected]>
Fabian Niestroj wrote:
> I tried to kompile "logitech-resolution.c" but I get theses error messages after typing "gcc logitech-resolution.c"
> /tmp/ccffOufp.o: In function `get_resolution':
> /tmp/ccffOufp.o(.text+0xd): undefined reference to `usb_open'
> /tmp/ccffOufp.o(.text+0x2e): undefined reference to `usb_control_msg'
> /tmp/ccffOufp.o(.text+0x45): undefined reference to `usb_strerror'
> /tmp/ccffOufp.o(.text+0x61): undefined reference to `usb_close'
> 
> "libusb" is on my system in version 0.1.5-118
> 
> You seem not to have problems compiling.

You need to tell gcc to link with libusb.so.

Try gcc -lusb logitech-resolution.c.  The result will go into a.out.