Hi
Few months ago I start using B4A and B4R.
Then I try this nice tutorial:
https://www.b4x.com/android/forum/t...8-relays-wemos-d1-mini-wifi-android-4g.80909/
After some study (the android interface was missing) I was able to run it on the LOLIN32. I included also some improvement, like feed back and retry (Erel example).
That was with Arduino IDE 1.8.1, but I do not know which rCore.h library version was linked nor if the NEW library was involved.
A couple of days ago I update the Arduino IDE to the 1.8.5 and I tested with some example.
Then I switch to B4R, but a check of the relay tutorial give me a strange error on the NEW function (Arduino).
Search on Internet do not provide any solution.
To keep the long story short, before to go back to IDE 1.8.1, I found "a" solution by comment this code on the rCore.h (version 2).
#if !defined(_NEW)
extern void *operator new( size_t size, void *ptr );
#endif
It is a real Bug or the problem is on the NEW library?
Error reported
c:\users\. .\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\new: In function 'void* operator new(std::size_t, void*)':
c:\users\. .\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\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:\Users\..\DOCUME~1\B4R\8_relay\Objects\bin\sketch\B4RDefines.h:24:0,
from C:\Users\. .\DOCUME~1\B4R\8_relay\Objects\bin\sketch\AsyncStreams.cpp:1:
rCore.h:19: error: from previous declaration 'void* operator new(size_t, void*)'
extern void *operator new( size_t size, void *ptr );
Regard
Few months ago I start using B4A and B4R.
Then I try this nice tutorial:
https://www.b4x.com/android/forum/t...8-relays-wemos-d1-mini-wifi-android-4g.80909/
After some study (the android interface was missing) I was able to run it on the LOLIN32. I included also some improvement, like feed back and retry (Erel example).
That was with Arduino IDE 1.8.1, but I do not know which rCore.h library version was linked nor if the NEW library was involved.
A couple of days ago I update the Arduino IDE to the 1.8.5 and I tested with some example.
Then I switch to B4R, but a check of the relay tutorial give me a strange error on the NEW function (Arduino).
Search on Internet do not provide any solution.
To keep the long story short, before to go back to IDE 1.8.1, I found "a" solution by comment this code on the rCore.h (version 2).
#if !defined(_NEW)
extern void *operator new( size_t size, void *ptr );
#endif
It is a real Bug or the problem is on the NEW library?
Error reported
c:\users\. .\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\new: In function 'void* operator new(std::size_t, void*)':
c:\users\. .\documents\arduino\hardware\espressif\esp32\tools\xtensa-esp32-elf\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:\Users\..\DOCUME~1\B4R\8_relay\Objects\bin\sketch\B4RDefines.h:24:0,
from C:\Users\. .\DOCUME~1\B4R\8_relay\Objects\bin\sketch\AsyncStreams.cpp:1:
rCore.h:19: error: from previous declaration 'void* operator new(size_t, void*)'
extern void *operator new( size_t size, void *ptr );
Regard