electronicsguy / ESP8266

ESP8266 Projects
242 stars 183 forks source link

Compiler errors in Arduino IDE #55

Closed Lv2hack closed 6 years ago

Lv2hack commented 6 years ago

I'm sorry to bug you with this but I've tried everything I can think of and I'm hoping you can identify this issue. I'm following your example code to update a sheet on Google sheets. I've eliminated all the syntax and other errors but the IDE now spews a number of indecipherable errors which don't point to specific lines of code. Any help would be greatly appreciated. Here's what the IDE says when I try to compile.

`Arduino: 1.8.5 (Mac OS X), Board: "WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)"

Archiving built core (caching) in: /var/folders/8_/rhmmnn_11rd96djn56cfzfvc0000gp/T/arduino_cache_313632/core/core_esp8266_esp8266_d1_mini_CpuFrequency_80,UploadSpeed_921600,FlashSize_4M3M_f150fc25ecfbf09e988720431431691c.a sketch/ESP-temperature-logger.ino.cpp.o:(.text.setup+0x38): undefined reference to HTTPSRedirect::setPrintResponseBody(bool)' sketch/ESP-temperature-logger.ino.cpp.o:(.text.setup+0x3c): undefined reference toHTTPSRedirect::setContentTypeHeader(char const)' sketch/ESP-temperature-logger.ino.cpp.o:(.text.setup+0x40): undefined reference to `HTTPSRedirect::POST(String const&, char const, String const&, bool const&)' sketch/ESP-temperature-logger.ino.cpp.o: In function setup': /Users/atatistcheff/Documents/Arduino/ESP-temperature-logger/ESP-temperature-logger.ino:92: undefined reference toHTTPSRedirect::setPrintResponseBody(bool)' sketch/ESP-temperature-logger.ino.cpp.o: In function HardwareSerial::begin(unsigned long)': /Users/atatistcheff/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/HardwareSerial.h:75: undefined reference toHTTPSRedirect::setContentTypeHeader(char const)' sketch/ESP-temperature-logger.ino.cpp.o: In function setup': /Users/atatistcheff/Documents/Arduino/ESP-temperature-logger/ESP-temperature-logger.ino:112: undefined reference toHTTPSRedirect::POST(String const&, char const, String const&, bool const&)' /Users/atatistcheff/Documents/Arduino/ESP-temperature-logger/ESP-temperature-logger.ino:130: undefined reference to HTTPSRedirect::setPrintResponseBody(bool)' /Users/atatistcheff/Documents/Arduino/ESP-temperature-logger/ESP-temperature-logger.ino:131: undefined reference toHTTPSRedirect::setContentTypeHeader(char const)' sketch/ESP-temperature-logger.ino.cpp.o: In function postData(String, float)': /Users/atatistcheff/Documents/Arduino/ESP-temperature-logger/ESP-temperature-logger.ino:172: undefined reference toHTTPSRedirect::POST(String const&, char const, String const&, bool const&)' collect2: error: ld returned 1 exit status exit status 1 Error compiling for board WeMos D1 R2 & mini.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. `

Lv2hack commented 6 years ago

Nevermind, this was an IDE issue. Restarting fixed it!