wjasper / Linux_Drivers

Open source Linux device drivers
GNU General Public License v3.0
111 stars 64 forks source link

USB Linux driver build error #7

Closed jaythecelt closed 7 years ago

jaythecelt commented 7 years ago

I'm writing an interface between a Raspberry Pi and a USB-2408-2AO. I'm following this tech tip and ran across this error at step 6 under Install the USB Linux driver and compile the test programs:

gcc -g -Wall -fPIC -O -I/usr/local/include/libusb-1.0 -L/usr/local/lib -lusb-1.0 -c -o pmd.o pmd.c pmd.c:172:5: error: conflicting types for ‘getUsbSerialNumber’ int getUsbSerialNumber(libusb_device_handle udev, unsigned char serial[]) ^ In file included from pmd.c:25:0: pmd.h:77:6: note: previous declaration of ‘getUsbSerialNumber’ was here void getUsbSerialNumber(libusb_device_handle udev, unsigned char serial[]); ^

: recipe for target 'pmd.o' failed make: *** [pmd.o] Error 1 Here is the relevant part of the [session log showing the make messages.](https://github.com/wjasper/Linux_Drivers/files/1043576/log.txt) It looks like this error was introduced with the latest push. Thanks, Jay
wjasper commented 7 years ago

Forgot to push out pmd.h. Please pull it now, it should work for you.

jaythecelt commented 7 years ago

Works ... thanks a lot!