PlatformIO Community

Error base64 on PlatformIO

Hi Everybody,

I try implement Update OTA on flatformIO, but when i Build my project, i get troubles:
But when I use Arduino IDE, I don’t get It

Blockquote
C:\Users\ADMIN.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp: In member function ‘bool HTTPClient::beginInternal(const String&, const char*)’:
C:\Users\ADMIN.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp:322:32: error: ‘base64’ has not been declared
_base64Authorization = base64::encode(auth, false /* doNewLines /);
C:\Users\ADMIN.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp: In member function 'void HTTPClient::setAuthorization(const char
, const char*)’:
C:\Users\ADMIN.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp:510:32: error: ‘base64’ has not been declared
_base64Authorization = base64::encode(auth, false /* doNewLines */);
^
*** [.pio\build\ESP8266\lib31d\ESP8266HTTPClient\ESP8266HTTPClient.cpp.o] Error 1

Please help me solve it !
Thanks for support !

What’s your exact platformio.ini and example code?

Thanks for read !
i just resolve this problem.
I have some libralies which duplicate name base64.h. I rename them and it run for me !