Is it possible to ignore library files in the WebIDE at compile time?
I have two Xenons running small epaper displays, both are slightly different (one is red, black and white, the other just black and white), so need a different library to drive then. As both are going to perform the same function, I was hoping to decide which library to use with a #define and use the same code for everything else.
#define RBW_PAPER 1 #ifdef RBW_PAPER #include "ER-ERM0154-1.h" #else #include "ER-EPM0154-1B.h" #endif
Each of those header files define an object called Epd. When compiling I get the error
ER-EPM0154-1B.cpp:9:0: multiple definition of "Epd::~Epd()"
Even without the defines, if I just use comments:
//#include "ER-ERM0154-1.h" #include "ER-EPM0154-1B.h"
I get the same error. If I delete the two files I’m not using for ER-ERM0154-1.h, it compiles fine.
Is there a way I can say ‘completely ignore ER-ERM0154-1.h’? It looks like although I have not included it, it tries to compile it then finds two definitions for Epd and errors.