Arrrggghhh!!! I just had the same issue, edited the #include line causing the problems. I tried different versions of the #include and ended back to the original syntax. And then it worked!!! WTF!!!
I would say, remove line 15 of EasyVR.cpp, save, then put it back again, save and compile. See if that works.
@ScruffR, tried that and it thows an error! I wonder if the pre-processor is playing havoc. And yes, I am using 1.18.0-libraries.16. Is this why it works on mine and not others?
Yup!
I also have lost track of what’s in the official CLI, since testing Libs 2.0, but my last info was that files in subdirectories got uploaded, but into a flat target directory on the build server and hence the includes have to be flattened.
I will for sure keep you all posted. I have been playing with it using the shield on the arduino and so far so good. Thanks for the link. I will check it out
Well I have a couple of questions now related to this. I have been able to get my original Arduino code (works fine on mega 2560 with the EasyVR shield) to compile on both the Arduino IDE and Particle CLI by making a couple of small additions to the code. The weird thing is that if I change my pin assignments to Electron pins, I cannot get it to compile in either. I have tried #define archPin = D1 and int arch D1; In the sketch for the arduino I had used pins 23-29. I have no clue what I am missing here?
Also, when I do compile it in the Particle CLI I get a rather lengthy filename.bin. Can I rename this? I seem to remember reading something on that but I cant for the life of me, find it now!