I'm wondering if it's possible to use GNU (g++) to compile a arduino Sketch.
I wanna be able to unit test my code with
g++ -std=c++11 <filename> works well with catch2, but I obviously does not recognize Arduino's framework (Strings, Serial etc).
What I think is, maybe if I use Arduino's compiler [ which is compatible with -std=c++11 I would be able to do run the catch2 with the Arduino framework.
Does anyone knows where to find Arduino's compiler? or how to make GNU accept Arduino's framework?