Skip to content
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

error: no matching function for call to 'LITTLEFSImpl::open(const char*&, const char [2])' #59

Open
jeiry opened this issue Mar 3, 2023 · 3 comments

Comments

@jeiry
Copy link

jeiry commented Mar 3, 2023

board: esp32s3 n8r8
psram: opi psram
flash model: QIO 120MHz
flash size: 8MB(64MB)

LITTLEFS-1.0.6
esp32\2.0.6

`#include <Arduino.h>
#include "FS.h"
#include <LITTLEFS.h>
void setup() {
Serial.println("Mount LittleFS");
if (!LITTLEFS.begin()) {
Serial.println("LittleFS mount failed");
return;
}
LITTLEFS.end();
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}`

Error:
`e:\files\Arduino\libraries\LITTLEFS-1.0.6\src\LITTLEFS.cpp: In member function 'virtual bool LITTLEFSImpl::exists(const char*)':
e:\files\Arduino\libraries\LITTLEFS-1.0.6\src\LITTLEFS.cpp:44:28: error: no matching function for call to 'LITTLEFSImpl::open(const char*&, const char [2])'
File f = open(path, "r");
^
In file included from e:\files\Arduino\libraries\LITTLEFS-1.0.6\src\LITTLEFS.cpp:17:
F:\Arduino15\packages\esp32\hardware\esp32\2.0.6\libraries\FS\src/vfs_api.h:38:17: note: candidate: 'virtual fs::FileImplPtr VFSImpl::open(const char*, const char*, bool)'
FileImplPtr open(const char* path, const char* mode, const bool create) override;
^~~~
F:\Arduino15\packages\esp32\hardware\esp32\2.0.6\libraries\FS\src/vfs_api.h:38:17: note: candidate expects 3 arguments, 2 provided

exit status 1

Compilation error: exit status 1`

What is wrong with me? Help Please!Thank you

@Riasann
Copy link

Riasann commented Mar 10, 2023

Seams its a issue with the new Version 1.0.6, i go back to Version 1.0.5 and its works again.
But yes i have the same issue with the Version 1.0.6

@haklein
Copy link

haklein commented Apr 13, 2024

getting the same error when trying to build with PIO for M5stack Core2. Specifying 1.0.5 in lib_deps didn't help..

@Horashi0
Copy link

Horashi0 commented Jun 17, 2024

For anyone who has the same problem

I fixed this by downloading the 1.0.5 from here: https://github.com/lorol/LITTLEFS/releases

I then extracted the folder and renamed it to "LittleFS_esp32" and plopped it into my .pio/libdeps folder and my platformio on debian recognised it and compiled without this issue ;)

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

4 participants