I am getting the error of "Multiple libraries were found for "Max3421e.h" even though there are no libraries based on Max3421e. Please have a look at the image I attached to this message.
I am requesting you to please help me in this regard.
Hi there. Please post your code with links and/or references to the libraries (non-standard) you use. Copy and post the error messages as well. Without this we can offer no support. Many do this from their phone while commuting, etc., if we can't see it on this screen, we can't see it period.
Not used: C:\Program Files (x86)\Arduino\libraries\USB_Host_Shield
^
Not used: C:\Program Files (x86)\Arduino\libraries\USB_Host_Shield
compilation terminated.
Not used: C:\Program Files (x86)\Arduino\libraries\USB_Host_Shield
Not used: C:\Program Files (x86)\Arduino\libraries\USB_Host_Shield
exit status 1
Usb.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I removed all the libraries based on Max3421e, but still I am getting the error : Multiple libraries were found for "Max3421e.h"
Not used: C:\Program Files (x86)\Arduino\libraries\USB_Host_Shield
^
Not used: C:\Program Files (x86)\Arduino\libraries\USB_Host_Shield
compilation terminated.
Not used: C:\Program Files (x86)\Arduino\libraries\USB_Host_Shield
Not used: C:\Program Files (x86)\Arduino\libraries\USB_Host_Shield
exit status 1
Usb.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The USB Host shield uses the max3421 chip so installing the USB Host shield library includes files for the max3421. You are using an 8 year old obsolete version of the USB host shield library.
vamshich:
Initially I installed a library which contains these files in libraries section of arduino folder :
C:\Program Files (x86)\Arduino\libraries
Unlikely to be the cause of your problem, but you should never install libraries to that location. The reason is everything you install to the Arduino IDE installation folder will be lost when you update to a new version of the Arduino IDE. For this reason, you should always install libraries to the libraries subfolder of the sketchbook folder. You can find/change the location of the sketchbook folder in the Arduino IDE at File > Preferences > Sketchbook location.
vamshich:
The common error in both the cases : Multiple libraries were found for "Max3421e.h"
That's not an error. It's just some helpful information the Arduino IDE displays. As long as it shows that the intended library was used, you don't need to worry about it.
The only error you've been getting is "Board_test:7:17: error: Usb.h: No such file or directory". It is confusing how the "multiple libraries" messages are being interleaved with the "No such file or directory" error. I haven't seen that before.
I'm not sure why you're getting the "Usb.h: No such file or directory" error. The USB_Host_Shield library does contain a file named Usb.h. I suspect you might not have installed the library correctly.