- Mon Sep 28, 2015 9:29 am
#30048
Most IDE's are unduly convoluted ( way too many files and interdependence between files) Arduino is no exception. I come from a PIC development system in which stable coding encourages few *h files and few inter dependencies between *h and *c files.
In that regard Arduino provides a window on the dependencies actually used but can only point out the inconsistencies via error in the compilation.
Below is the verbose information from the failed compile.
Action
Please replace WString.h/WString.cpp with mines
They should be burried there: C:\Users\...\AppData\...\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-...\cores\esp8266\...done
The error persists
[code]Arduino: 1.6.5 (Windows 7), Board: "Generic ESP8266 board"
Using library ESP8266WiFi in folder: C:\Users\******\Documents\Arduino\hardware\arduino-esp8266-master\esp8266\libraries\ESP8266WiFi
Using library PubSubClient in folder: C:\Program Files (x86)\Arduino\libraries\pubsubclient-master
Using library Ticker in folder: C:\Users\******\Documents\Arduino\hardware\arduino-esp8266-master\esp8266\libraries\Ticker
C:\Users\******\Documents\Arduino\hardware\arduino-esp8266-master/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -IC:\Users\******\Documents\Arduino\hardware\arduino-esp8266-master/tools/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -IC:\Users\******\Documents\Arduino\hardware\arduino-esp8266-master\esp8266\cores\esp8266 -IC:\Users\******\Documents\Arduino\hardware\arduino-esp8266-master\esp8266\variants\esp01 -IC:\Users\******\Documents\Arduino\hardware\arduino-esp8266-master\esp8266\libraries\ESP8266WiFi\src -IC:\Program Files (x86)\Arduino\libraries\pubsubclient-master\src -IC:\Users\******\Documents\Arduino\hardware\arduino-esp8266-master\esp8266\libraries\Ticker C:\Users\******\AppData\Local\Temp\build3416804306679904140.tmp\MQTT_led_V1.06.cpp -o C:\Users\******\AppData\Local\Temp\build3416804306679904140.tmp\MQTT_led_V1.06.cpp.o
In file included from C:\Program Files (x86)\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:17:0,
from MQTT_led_V1.06.ino:23:
C:\Program Files (x86)\Arduino\libraries\pubsubclient-master\src/MQTT.h:278:33: error: '__FlashStringHelper' does not name a type
Publish(String topic, const __FlashStringHelper* payload);
^
C:\Program Files (x86)\Arduino\libraries\pubsubclient-master\src/MQTT.h:278:54: error: ISO C++ forbids declaration of 'payload' with no type [-fpermissive]
Publish(String topic, const __FlashStringHelper* payload);
^
Error compiling.
[/code]
Kas again thanks for helping with this