This is question is similar to a previous FORUM question regarding for MATLAB support packages where the fix was to reinstall the Arduino IDE.
I Did that , it didnt work to fix the compile error as the c:\programdata\matlab\supportpackages\........did not get deleted.
I also renamed c:\programdata\matlab\..............to c:\programdata\matlab_OLD\.......
After doing that change, the IDE didnt recognize BOARDs in Boards MANAGER. I reinstalled needed BOARDS , then opened Arduino IDE, IDE graciously created a new c:\programdata\matlab\.........folder for me.
Any other ideas to get the ARDUINO IDE to stop using this MATLAB support package ? I havent found a knob in the Arduino IDE to redirect it. The MATLAB license expired 3years ago, I didnt renew, and uninstalled MATLAB.
The Arduino IDE continued to use this MATLAB directory, usually without incident. But NOW Its stuck and wont allow the use of Nicla.
Please, any suggestions are appreciated.
The specific error:
c:\programdata\matlab\supportpackages\r2018b\3p.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\type_traits:38:10: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
Using library Arduino_BHY2 at version 1.0.4 in folder: C:\Users\GaryY\Documents\Arduino\libraries\Arduino_BHY2
exit status 1
Error compiling for board Nicla Sense ME.