Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: dpineau on Dec 11, 2019, 01:53 am

Title: Multiple libraries ......
Post by: dpineau on Dec 11, 2019, 01:53 am
HI,

I make a new installation in folder Arduino_portable_3

I add  folder "portable" next to arduino.exe

I compile, result:
error: WiFiManager.h: No such file or directory

OK, so I add the WiFiManager lib in sketchbook->libraries

I compile, result:
Multiple libraries were found for "WiFiManager.h"

How it is possible to have multiple if I install just one?

Daniel.


Title: Re: Multiple libraries ......
Post by: ballscrewbob on Dec 11, 2019, 01:58 am
There are "stock" libraries too and it may also be warning you about those.

If you sketch compiles and works then don't worry as they are usually just warnings.

Bob.

Title: Re: Multiple libraries ......
Post by: dpineau on Dec 11, 2019, 03:11 am
What do you mean by "stock" libraries

Daniel
Title: Re: Multiple libraries ......
Post by: ballscrewbob on Dec 11, 2019, 03:50 am
Ones that are included with the IDE itself would be considered "stock" or part of the install itself regardless of portable or other install methods.
They come WITH the IDE.

Bob.

Title: Re: Multiple libraries ......
Post by: sterretje on Dec 11, 2019, 04:01 am
Ones that are included with the IDE itself would be considered "stock" or part of the install itself regardless of portable or other install methods.
They come WITH the IDE.

Bob.

Before installing the library in question by OP, he/she had the problem that was not found.

Puzzles me too.
Title: Re: Multiple libraries ......
Post by: ballscrewbob on Dec 11, 2019, 04:26 am
Unless there were multiple variants in the same lib ?
But I don't think it would / should read them all if it was only compiling for a single architecture ?

Title: Re: Multiple libraries ......
Post by: dpineau on Dec 11, 2019, 06:55 pm
Do you mean that the problem comes from the library itself?
Title: Re: Multiple libraries ......
Post by: RudolfAtRTC on Dec 11, 2019, 08:30 pm
An amusing or annoying discussion on the same topic: several libraries ...

Please always mention first: It is a weakness of the Arduino IDE and must / can be ignored until the IDE is finally repaired.
Title: Re: Multiple libraries ......
Post by: dpineau on Dec 11, 2019, 08:49 pm
OK I see!
Title: Re: Multiple libraries ......
Post by: avandalen on Jan 07, 2020, 09:30 am
I also have this problem and have a very simple example that shows the Arduino bug.
There is just one library Streaming installed here, on:
D:\Albert\Documents\Arduino\libraries
I searched well on my PC and there is nowhere a second Streaming lib present.

This is the very simple sketch:
Code: [Select]
#include <Streaming.h>

void setup()
{ m
}

void loop()
{
}

I
The error Multiple libraries were found for "Streaming.h" is shown
If I delete the m, the result is: compiling done, no further messages
Title: Re: Multiple libraries ......
Post by: sterretje on Jan 07, 2020, 10:15 am
@avandalen

Using Arduino IDE 1.8.5, I tried to reproduce the behaviour, but I do not get the "multiple libraries" warning with the code you provided.

Note: I do not have additional board packages (e.g. for esp stuff) installed