Conflicts with isnan macro
Created by: chegewara
Arduino: 1.8.5 (Windows 10), Board: "ESP32 Dev Module, Default, QIO, 40MHz, 4MB (32Mb), 921600, Verbose"
In file included from C:\Users\admin\Documents\Arduino\hardware\espressif\esp32\cores\esp32/esp32-hal.h:34:0,
from C:\Users\admin\Documents\Arduino\hardware\espressif\esp32\cores\esp32/Arduino.h:35,
from sketch\IoT.ino.cpp:1:
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:209:4: error: expected unqualified-id before 'sizeof'
((sizeof(__x) == sizeof(float)) ? __fpclassifyf(__x) : \
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:229:21: note: in expansion of macro 'fpclassify'
#define isnan(y) (fpclassify(y) == FP_NAN)
^
c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\polyfills\math.hpp:10:6: note: in expansion of macro 'isnan'
bool isnan(T x) {
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:209:4: error: expected ')' before 'sizeof'
((sizeof(__x) == sizeof(float)) ? __fpclassifyf(__x) : \
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:229:21: note: in expansion of macro 'fpclassify'
#define isnan(y) (fpclassify(y) == FP_NAN)
^
c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\polyfills\math.hpp:10:6: note: in expansion of macro 'isnan'
bool isnan(T x) {
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:209:4: error: expected ')' before 'sizeof'
((sizeof(__x) == sizeof(float)) ? __fpclassifyf(__x) : \
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:229:21: note: in expansion of macro 'fpclassify'
#define isnan(y) (fpclassify(y) == FP_NAN)
^
c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\polyfills\math.hpp:10:6: note: in expansion of macro 'isnan'
bool isnan(T x) {
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:209:4: error: expected ')' before 'sizeof'
((sizeof(__x) == sizeof(float)) ? __fpclassifyf(__x) : \
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:229:21: note: in expansion of macro 'fpclassify'
#define isnan(y) (fpclassify(y) == FP_NAN)
^
c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\polyfills\math.hpp:10:6: note: in expansion of macro 'isnan'
bool isnan(T x) {
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:209:4: error: expected unqualified-id before 'sizeof'
((sizeof(__x) == sizeof(float)) ? __fpclassifyf(__x) : \
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:225:21: note: in expansion of macro 'fpclassify'
#define isinf(y) (fpclassify(y) == FP_INFINITE)
^
c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\polyfills\math.hpp:15:6: note: in expansion of macro 'isinf'
bool isinf(T x) {
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:209:4: error: expected ')' before 'sizeof'
((sizeof(__x) == sizeof(float)) ? __fpclassifyf(__x) : \
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:225:21: note: in expansion of macro 'fpclassify'
#define isinf(y) (fpclassify(y) == FP_INFINITE)
^
c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\polyfills\math.hpp:15:6: note: in expansion of macro 'isinf'
bool isinf(T x) {
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:209:4: error: expected ')' before 'sizeof'
((sizeof(__x) == sizeof(float)) ? __fpclassifyf(__x) : \
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:225:21: note: in expansion of macro 'fpclassify'
#define isinf(y) (fpclassify(y) == FP_INFINITE)
^
c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\polyfills\math.hpp:15:6: note: in expansion of macro 'isinf'
bool isinf(T x) {
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:209:4: error: expected ')' before 'sizeof'
((sizeof(__x) == sizeof(float)) ? __fpclassifyf(__x) : \
^
C:\Users\admin\Documents\Arduino\hardware\espressif\esp32/tools/sdk/include/newlib/math.h:225:21: note: in expansion of macro 'fpclassify'
#define isinf(y) (fpclassify(y) == FP_INFINITE)
^
c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\polyfills\math.hpp:15:6: note: in expansion of macro 'isinf'
bool isinf(T x) {
^
IoT:163: error: 'StaticJsonBuffer' does not name a type
StaticJsonBuffer<100> JSONBuffer;
^
C:\Users\admin\Documents\Arduino\IoT\IoT.ino: In function 'void messageReceived(String&, String&)':
IoT:181: error: 'JSONBuffer' was not declared in this scope
JsonObject& parsed = JSONBuffer.parseObject(JSONMessage);
^
IoT:181: error: 'JSONMessage' was not declared in this scope
JsonObject& parsed = JSONBuffer.parseObject(JSONMessage);
^
IoT:183: error: initializer fails to determine size of 'id'
char id[] = parsed["id"];
^
IoT:183: error: array must be initialized with a brace-enclosed initializer
IoT:184: error: initializer fails to determine size of 'pin'
char pin[] = parsed["pin"];
^
IoT:184: error: array must be initialized with a brace-enclosed initializer
IoT:187: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
client.publish('iotbutton/delete/pin', id);
^
In file included from C:\Users\admin\Documents\Arduino\IoT\IoT.ino:12:0:
C:\Users\admin\Documents\Arduino\libraries\arduino-mqtt-master\src/MQTTClient.h:231:8: note: initializing argument 1 of 'bool MQTTClient::publish(const char*, const char*)'
bool publish(const char topic[], const char payload[]) {
^
Multiple libraries were found for "WiFi.h"
Used: C:\Users\admin\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: E:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
'StaticJsonBuffer' does not name a type
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Could anyone help me please?