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

AutoConnectPageImpl.hpp:1001:20: error: there are no arguments to 'spi_flash_get_chip_size' that depend on a template parameter, so a declaration of 'spi_flash_get_chip_size' must be available [-fpermissive] #613

Open
huster-songtao opened this issue Nov 2, 2023 · 2 comments

Comments

@huster-songtao
Copy link

\AutoConnect\examples\mqttRSSI_FS
open mqttRSSI_FS.ino and build, it throw exceptions:

In file included from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:14,
from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectExt.hpp:15,
from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectExtImpl.hpp:13,
from d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnect.h:15,
from D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino:39:
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp: In static member function 'static uint32_t AutoConnectCore::_getFlashChipRealSize()':
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1001:20: error: there are no arguments to 'spi_flash_get_chip_size' that depend on a template parameter, so a declaration of 'spi_flash_get_chip_size' must be available [-fpermissive]
1001 | return (uint32_t)spi_flash_get_chip_size();
| ^~~~~~~~~~~~~~~~~~~~~~~
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1001:20: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino: At global scope:
D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino:55:69: note: '#pragma message: Warning, LED_BUILTIN is undefined. Assumes Pin #2.'
55 | #pragma message("Warning, LED_BUILTIN is undefined. Assumes Pin #2.")
| ^
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp: In instantiation of 'static uint32_t AutoConnectCore::_getFlashChipRealSize() [with T = AutoConnectConfigExt; uint32_t = long unsigned int]':
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1242:38: required from 'String AutoConnectCore::_token_FLASH_SIZE(PageArgument&) [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1647:50: required from 'PageElement* AutoConnectCore::_setupPage(String&) [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:1447:29: required from 'bool AutoConnectCore::_classifyHandle(HTTPMethod, String) [with T = AutoConnectConfigExt; HTTPMethod = http_method]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:1093:44: required from 'void AutoConnectCore::_startWebServer() [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:260:7: required from 'bool AutoConnectCore::begin(const char*, const char*, long unsigned int) [with T = AutoConnectConfigExt]'
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectCoreImpl.hpp:74:15: required from 'bool AutoConnectCore::begin() [with T = AutoConnectConfigExt]'
D:\Github\AutoConnect\examples\mqttRSSI_FS\mqttRSSI_FS.ino:450:15: required from here
d:\Arduino\Sketchbook\libraries\AutoConnect\src/AutoConnectPageImpl.hpp:1001:43: error: 'spi_flash_get_chip_size' was not declared in this scope
1001 | return (uint32_t)spi_flash_get_chip_size();
| ~~~~~~~~~~~~~~~~~~~~~~~^~

exit status 1

Compilation error: exit status 1

@zaid894
Copy link

zaid894 commented Jan 24, 2024

I am facing the same issue, and the library is no longer compiling.

@johnnyasantoss
Copy link

Maybe related to espressif/esp-idf#9382 (comment)

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

3 participants