Strange compilation error in Arduino IDE, but not Xcode


#1

Hi guys!

I am currently working on a project where I do my programming in Xcode (which btw works perfectly with the Mackeblock library!). Recently, I have found the need to use the Arduino IDE to determine memory usage for my program, and I have encountered a strange compilation error in the Arduino IDE that I do not get in Xcode:

“mypath/Arduino/libraries/Makeblock/Makeblock.h:316: error: expected class-name before ‘,’ token”

In the current Makeblock library version (downloaded 15.03.2014) this line of code corresponds to:

“class MeSerial: public SoftwareSerial,public MePort”

From what I see, there is nothing wrong with this line of code, nor any of the lines above in the same file. I can run the exact same code in Xcode just fine, and all the example files from Makeblock works without any issue.

What could be giving this compilation error? I am currently clueless myself, and any ideas would be much appreciated. :slight_smile:


#2

hi,@tormodhau,the ino file needs include “SoftwareSerial.h” and “Wire.h” in the arduino ide because the makeblock library has include them. I prefer Xcode to arduino ide.


#3