Skip to content

Arduino IDE reads CPLUS_INCLUDE_PATH when it shouldn't #1289

Open
@apexys

Description

@apexys

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!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions