Hello,
i will update a sketch from a MEGA to my new DUE...
But i have the following error (IDE 1.5.2):
In file included from c:\programme\arduino-1.5.2\hardware\tools\g++_arm_none_eabi\bin../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/stdlib.h:21,
from C:\Programme\arduino-1.5.2\hardware\arduino\sam\cores\arduino/Arduino.h:23,
from C:\Programme\arduino-1.5.2\hardware\arduino\sam\variants\arduino_due_x/variant.h:26,
from C:\Programme\arduino-1.5.2\hardware\arduino\sam\libraries\SPI/SPI.h:14,
from THS_DUE_2013_002.ino:148:
c:\programme\arduino-1.5.2\hardware\tools\g++_arm_none_eabi\bin../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/sys/reent.h:490: error: #if with no expression
The same sketch can i compile without errors in the same IDE for a MEGA.
c:\programme\arduino-1.5.2\hardware\tools\g++_arm_none_eabi\bin../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/sys/reent.h:490: error: #if with no expression
The Error is outside of your sketch. Head honcho g++ tells you that the file reent.h which is to be used for compiling code for the SAM3X is botched. So the message ensues. Have you messed in this file before?
This file is not used for the Atmega Mega so no error occur.