B4R Question SSD1306

iCAB

Well-Known Member
Licensed User
Hi All

1. I downloaded both Libraries from this link:
https://www.b4x.com/android/forum/threads/radafruitssd1306-oled-displays.68906/#content

2. Copied the contents to the Additional Libraries folder

Now I am trying to compile Clock.Zip sample code, and I am getting an error.

Just to make sure I understand the library concept properly. Do I have to do anything in the arduino IDE after downloading a library?

Here is the error I am getting:

B4X:
In file included from c:\users\User\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\functional:48:0,
                 from C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\WiFi\src/WiFiGeneric.h:28,
                 from C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\WiFi\src/WiFiSTA.h:28,
                 from C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\WiFi\src/WiFi.h:32,
                 from C:\data\B4RPRO~1\SOURCE~1\ESP32\Clock\Objects\bin\sketch\rESP8266WiFi.h:4,
                 from C:\data\B4RPRO~1\SOURCE~1\ESP32\Clock\Objects\bin\sketch\B4RDefines.h:26,
                 from C:\data\B4RPRO~1\SOURCE~1\ESP32\Clock\Objects\bin\sketch\AsyncStreams.cpp:1:
c:\users\User\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\new: In function 'void* operator new(std::size_t, void*)':
c:\users\User\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\new:129:51: error: declaration of 'void* operator new(std::size_t, void*) noexcept' has a different exception specifier
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                                   ^
In file included from C:\data\B4RPRO~1\SOURCE~1\ESP32\Clock\Objects\bin\sketch\B4RDefines.h:24:0,
                 from C:\data\B4RPRO~1\SOURCE~1\ESP32\Clock\Objects\bin\sketch\AsyncStreams.cpp:1:
rCore.h:18: error: from previous declaration 'void* operator new(size_t, void*)'
 extern void *operator new( size_t size, void *ptr );
              ^
Multiple libraries were found for "WiFi.h"
 Used: C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\WiFi
 
Top