Hello all,
I'm trying to compile a code for RTL8720DN-BW16 board. But IDE always give me this error: C:\Users*\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.1.8\cores\ambd/wiring_constants.h:78:19: error: expected unqualified-id before '(' token**
** #define max(a, b) ((a) > (b) ? (a) : (b))**
** ^** exit status 1
I found this code in the file "wiring_constants.h"
#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif // min
#ifndef max
#define max(a, b) ((a) > (b) ? (a) : (b))
#endif // max
Line 78, column 19 is the 2nd "define", ((a)>b)
This library is downloaded from Board Manager, not my code. So what does the error mean and how to fix it?
To be clear,
Oftentimes the compiler will be confused by some error in your code, but erroneously point to something in included code. The reasons are complicated, but the best you can do is show us your code in order to rule that out...or not.