How can i resolve the ESP8266 compilation error caused by the Arduino Support Package?
Show older comments
I am unable to build any of my ESP8266 boards after i installed the Arduino Support Package on my machine.
Error Debug message:
In file included from c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:60:0,
from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:255,
from sketch\ESP8266.ino.cpp:1:
c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\utility:68: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 NodeMCU 1.0 (ESP-12E Module).
5 Comments
Hans Scharler
on 11 Oct 2018
Did you ever get this resolved?
Siddharth Vaghela
on 11 Oct 2018
Arpita Agrawal
on 8 Feb 2019
Edited: Arpita Agrawal
on 8 Feb 2019
Hi,
We are aware of this issue and actively working on a resolution for this. Until then consider using the solution mentioned in post by Haben Ghebremedhin on Dec 16, 2018.
Thanks
Arpita
MATLAB Hardware Team, MathWorks
Siddharth Vaghela
on 8 Feb 2019
HabenG
on 9 Feb 2019
Thats true, when you need to use the MATLAB hardware package just go back to the file and change it back.
Accepted Answer
More Answers (3)
Zaid Haymoor
on 22 Oct 2018
2 votes
I had this problem, and I have just solved it by going to C:\Users\Zaid\AppData\Local
then search for the folder arduino or arduino15
Uninstall the IDE then remove this folder, matlab changes the configuration of the IDE somewhere in this folder so it starts reading the boards from somewhere else,, after deleting the folder Arduino or arduino15 or both you can reinstall the arduino IDE and reconfigure the esp boards from boards manager after adding the jason extension from preferences as before and it will work
8 Comments
julien mulleneers
on 19 Apr 2019
This works for me.
Thank you so much
Bharath R
on 6 May 2019
@zaid
Thank you... this works for me.
Ervan Paryono
on 18 Oct 2019
terima kasih
Zaid Haymoor
on 18 Oct 2019
you are all welcome :D
Mg Mg Thwin
on 31 Oct 2019
Thanks You @Zaid.........Your answer can solve my problems.
Lau Boon Chong
on 24 May 2021
Farabi Gulandaz
on 26 Jul 2022
Thankyou. It worked.
ahmed
on 4 May 2025
what should i do after deleting the Arduino15 file
Walter Roberson
on 29 Sep 2018
0 votes
3 Comments
Siddharth Vaghela
on 1 Oct 2018
Walter Roberson
on 1 Oct 2018
KT Naveen
on 17 Oct 2018
can u give anyother suggestion?...still facing the same issue..
Mursina Begum
on 30 Oct 2019
0 votes
Hi, I am new to nodemcu. When I was using ESP8266WiFi.h, I got the error "Error compiling for board NodeMCU 1.0 (ESP-12E Module)" which said that Multiple libraries were found for ESP8266WiFi.h. I solved by simply put the void loop(){} empty function at the end of my code. Now It's working...
Categories
Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!