Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 250 forks source link

ESP8266WiFiMulti build error, 'INT_MIN' was not declared... #448

Open david-feliz opened 7 years ago

david-feliz commented 7 years ago

First of all, I want to thank you for your great work!

The problem: I can not compile with the ESP8266 platform. In Arduino it works fine.

I tried deleting everything, Stino and platforms... then I installed Stino cloning the repository and then I installed the ESP8266 and Arduino platforms from Stino (not Arduino), and I still get exactly the same error, even with the examples included in the platform.

Error: [6.2%] Compiling ESP8266WiFiMulti.cpp... C:/Users/hodav/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp: In member function 'wl_status_t ESP8266WiFiMulti::run()': C:/Users/hodav/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp:55:33: error: 'INT_MIN' was not declared in this scope int bestNetworkDb = INT_MIN; ^ [Build] Error occurred.

I appreciate any clues you can give me to avoid this problem!

dombic commented 6 years ago

Same problem in Arduino 1.8.5 IDE. Strange, as limits.h is being included at the top of ESP8266WiFiMulti.cpp.

RoadkillUK commented 6 years ago

Any new on this as I have the same problem now :(

sstefanov commented 5 years ago

Same problem! With arduino same sketch is compiled fine. I found there are some additional includes which stino does: -I/home/sstefanov/sketchbook/libraries/grbl -I/home/sstefanov/sketchbook/libraries/SPI When I remove -I/home/sstefanov/sketchbook/libraries/grbl from g++ arguments all is working OK!

Question is how to make stino to not include them?