Closed
Description
When I declare
String hostname;
I end up with a compiler conflict:
C:\Users\xx\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0-rc2/tools/sdk/lib\libmain.a(eagle_lwip_if.o):(.bss+0x0): multiple definition of `hostname'
sketch\esp8266-webconf.ino.cpp.o:(.bss.hostname+0x0): first defined here
c:/users/xx/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: Warning: size of symbol `hostname' changed from 12 in sketch\esp8266-webconf.ino.cpp.o to 4 in C:\Users\xx\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0-rc2/tools/sdk/lib\libmain.a(eagle_lwip_if.o)
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling.
However, when I try to use the obviously existing internal hostname
I receive an undefined error.
Is hostname
a forbidden symbol name?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.