SAMD21 Turbo library error?

I followed the hookup guide and used the board manager for the Arduino IDE but when I went to run the example code to test it I got this error.

In file included from C:\ProgramData\MATLAB\SupportPackages\R2016b\3P.instrset\arduinoide.instrset\arduinosam-1.6.7\packages\SparkFun\hardware\samd\1.5.4\cores\arduino/Uart.h:25:0,

from C:\ProgramData\MATLAB\SupportPackages\R2016b\3P.instrset\arduinoide.instrset\arduinosam-1.6.7\packages\SparkFun\hardware\samd\1.5.4\variants\SparkFun_RedBoard_Turbo/variant.h:43,

from C:\ProgramData\MATLAB\SupportPackages\R2016b\3P.instrset\arduinoide.instrset\arduinosam-1.6.7\packages\SparkFun\hardware\samd\1.5.4\cores\arduino/delay.h:23,

from C:\ProgramData\MATLAB\SupportPackages\R2016b\3P.instrset\arduinoide.instrset\arduinosam-1.6.7\packages\SparkFun\hardware\samd\1.5.4\cores\arduino/Arduino.h:81,

from sketch\sketch_mar12a.ino.cpp:1:

c:\programdata\matlab\supportpackages\r2016b\3p.instrset\arduinoide.instrset\arduinosam-1.6.7\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\c++\4.8.3\cstddef:41:28: fatal error: bits/c++config.h: No such file or directory

#include <bits/c++config.h>

^

compilation terminated.

exit status 1

Error compiling for board SparkFun RedBoard Turbo.

I am hoping I just downloaded something wrong.

Usually the error:

"exit status 1

Error compiling for board SparkFun RedBoard Turbo."

means that there was an issue with the code. Have you tried just compiling and uploading the blink sketch on the RedBoard Turbo hookup guide?

https://learn.sparkfun.com/tutorials/re … mple-blink

Try it out. Let us know what happens.

You might try removing the RedBoard turbo from Arduino and re-adding it. Sometimes the IDE doesn’t fully install a board.

A google search tells me that there is an issue with #include <bits/c++config.h> on Ubuntu 32-bit versions. What’s your operating system?

my OS is windows 10. I tried the tutorial blink code from the link and I also removed and reinstalled the hardware. I also tried the double tap method.

same result

I have remover and reinstalled everything by now and still this error keeps coming up.

Turned out I had to find the cpp file and comment out a header file. All the demos are working now