Open
Description
Hi,
I've just done a fresh install of the Arduino IDE version 1.8.14 on my system and when I tried to compile a blink sketch, it gave me the following error:
In file included from C:\msys64\mingw64\include\c++\10.2.0/stdlib.h:36:0,
from C:\Users\Valentin Buck\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino/Arduino.h:23,
from sketch\Blink.ino.cpp:1:
C:\msys64\mingw64\include\c++\10.2.0/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Fehler beim Kompilieren für das Board Arduino Uno.
It looks like avr-gcc tries to include a file from my mingw64-installation instead of the arduino specific headers.
If I remove the environment variable CPLUS_INCLUDE_PATH
, the blink sketch compiles normally.
Is there a better way to do this?
Thanks!