Skip to content

Name conflict with SD.h and FS.h #3710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
awigen opened this issue Oct 11, 2017 · 1 comment
Closed

Name conflict with SD.h and FS.h #3710

awigen opened this issue Oct 11, 2017 · 1 comment

Comments

@awigen
Copy link

awigen commented Oct 11, 2017

Including both FS.h and SD.h produces the following compile error:

framework-arduinoespressif8266/libraries/SD/src/SD.h:27:7: error: redefinition of 'class fs::File'
class File : public Stream {
Indexing .pioenvs/esp12e/lib/libAsyncMqttClient_ID346.a
^
In file included from .piolibdeps/Homie/src/Homie/Datatypes/../Config.hpp:6:0,
from .piolibdeps/Homie/src/Homie/Datatypes/Interface.hpp:7,
from .piolibdeps/Homie/src/Homie.hpp:6,
from .piolibdeps/Homie/src/Homie.h:4,
from src/main.cpp:6:
framework-arduinoespressif8266/cores/esp8266/FS.h:48:7: error: previous definition of 'class fs::File'
class File : public Stream
^

----------------------------- Remove above -----------------------------

Basic Infos

Sketch

#include <Arduino.h>
#include <FD.h>
#include <SD.h>

void setup() {

}

void loop() {

}
@devyte
Copy link
Collaborator

devyte commented Oct 24, 2017

@awigen the Arduino usage is really meant for only one file system, which here means either SPIFFS or SD.
Still, it's possible to use both, see #2281 .
Closing.

@devyte devyte closed this as completed Oct 24, 2017
awigen added a commit to awigen/homie-esp8266 that referenced this issue Dec 26, 2017
The Arduino core does not allow both SPIFFS and SD to be used at the
same time.

Ref: esp8266/Arduino#3710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants