-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Conflict between File class defined in FS.h and SD #2281
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
Comments
+1 |
1 similar comment
+1 |
there is a define for this to be used before header call
then you must add namespace fs for SPIFFS objects like then no more conflict |
Thank's I,m beguinner and this is a great helpfull |
The referenced solution is present in latest git. Closing as resolved. |
Hi... Paul here, the guy who makes Teensy. :-) I know this may be a little off-topic, but I'm hoping to craft a FS.h that all core libraries can use. My main goal is to be able to create libraries which use files, like a JPEG decoder, which can accept a generic File object that works with ESP spiffs and Arduino's SD & Bridge, and USB Host Shield's upcoming support for USB memory sticks, and long-term any library which provides access to files. Can someone please point me to where we should discuss such a FS.h (if anyone's interested)? |
Hi Paul, please feel free to open a new issue in this repo for such discussion (and @devtye please don't close it as off-topic). Alternatively, we could discuss on Arduino-dev mailing list, however personally I find Github to be more convenient. |
@igrr I don't consider it off topic :p and I just got involved myself in the Arduino discussion. |
Hi, I tried this methode, it seams to by-pass the class name conflict but i m still not able to read or write in the sd card or spiffs... in fact i m able to write a file but not to write inside this file... any idea or other same experience with this issue? |
I was banging my head at this until I removed an equals sign!
Works for me. |
Please fill the info fields, it helps to get you faster support ;)
if you have a stack dump decode it:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.md
for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.md
----------------------------- Remove above -----------------------------
Basic Infos
Hardware
Hardware: ESP-12E
Core Version: ?2.1.0-rc2?
Description
Problem description
Settings in IDE
Module: ?Generic ESP8266 Module?
Flash Size: 4MB
CPU Frequency: 80Mhz?
Flash Mode: dio
Flash Frequency: ?40Mhz?
Upload Using: SERIAL?
Reset Method: ?ck / nodemcu?
I am suing SD card and defined File Datafile and also using SPIFFy to upload my HTML files into the ESP. When compiling says FS.h:48:7: error: previous definition of 'class fs::File'
The text was updated successfully, but these errors were encountered: