Go Down

Topic: Multiple libraries ...... (Read 256 times) previous topic - next topic

dpineau

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.



ballscrewbob

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.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

dpineau

What do you mean by "stock" libraries

Daniel

ballscrewbob

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.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

sterretje

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.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

ballscrewbob

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 ?

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

dpineau

Do you mean that the problem comes from the library itself?

RudolfAtRTC

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.

dpineau


avandalen

#9
Jan 07, 2020, 09:30 am Last Edit: Jan 07, 2020, 09:33 am by avandalen
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

sterretje

@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
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Go Up