Skip to content

Core Not Compiling - 'vsnprintf' was not declared in this scope #5426

@ascillato

Description

@ascillato

Hi,

Sorry I missed the Issue Template, but the core is not compiling.

With last commits now I can't compile. I have this error in platformio:

'vsnprintf' was not declared in this scope

Output:

C:\Users\Usuario\.platformio\packages\framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910\cores\esp8266\pgmspace.cpp: In fun
ction 'int printf_P(const char*, ...)':
C:\Users\Usuario\.platformio\packages\framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910\cores\esp8266\pgmspace.cpp:248:34:
 error: 'vprintf' was not declared in this scope
ret = vprintf(format, arglist);
^
C:\Users\Usuario\.platformio\packages\framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910\cores\esp8266\pgmspace.cpp: In fun
ction 'int sprintf_P(char*, const char*, ...)':
C:\Users\Usuario\.platformio\packages\framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910\cores\esp8266\pgmspace.cpp:261:61:
 error: 'vsnprintf_P' was not declared in this scope
ret = vsnprintf_P(str, SIZE_IRRELEVANT, formatP, arglist);
^
C:\Users\Usuario\.platformio\packages\framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910\cores\esp8266\pgmspace.cpp: In fun
ction 'int snprintf_P(char*, size_t, const char*, ...)':
C:\Users\Usuario\.platformio\packages\framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910\cores\esp8266\pgmspace.cpp:272:53:
 error: 'vsnprintf_P' was not declared in this scope
ret = vsnprintf_P(str, strSize, formatP, arglist);
^
C:\Users\Usuario\.platformio\packages\framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910\cores\esp8266\pgmspace.cpp: In fun
ction 'int vsnprintf_P(char*, size_t, const char*, va_list)':
C:\Users\Usuario\.platformio\packages\framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910\cores\esp8266\pgmspace.cpp:285:45:
 error: 'vsnprintf' was not declared in this scope
ret = vsnprintf(str, strSize, format, ap);
^
Compiling .pioenvs\sonoff-ES_4MB\FrameworkArduino\sntp-lwip2.c.o
*** [.pioenvs\sonoff-ES_4MB\FrameworkArduino\pgmspace.cpp.o] Error 1


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions