Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile #23

Open
Jimbobnz opened this issue Oct 14, 2018 · 1 comment
Open

Unable to compile #23

Jimbobnz opened this issue Oct 14, 2018 · 1 comment

Comments

@Jimbobnz
Copy link

`Arduino: 1.8.4 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

Build options changed, rebuilding all
C:\Users\James\Documents\Arduino\libraries\uMQTTBroker\src\mqtt_server.c: In function 'MQTT_server_deleteClientCon':

C:\Users\James\Documents\Arduino\libraries\uMQTTBroker\src\mqtt_server.c:156:2: warning: 'return' with no value, in function returning non-void [enabled by default]

return;

^

In file included from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/include/os_type.h:28:0,

             from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/include/user_interface.h:28,

             from C:\Users\James\Documents\Arduino\libraries\uMQTTBroker\src\uMQTTBroker.h:4,

             from C:\Users\James\Documents\Arduino\libraries\uMQTTBroker\src\uMQTTBroker.cpp:2:

C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/include/ets_sys.h:193:5: error: previous declaration of 'int atoi(const char*)' with 'C++' linkage

int atoi(const char *nptr);

 ^

In file included from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/libc/xtensa-lx106-elf/include/string.h:10:0,

             from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/include/osapi.h:28,

             from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lwip/include/arch/cc.h:40,

             from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lwip/include/lwip/arch.h:43,

             from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lwip/include/lwip/debug.h:35,

             from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lwip/include/lwip/opt.h:46,

             from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lwip/include/lwip/ip_addr.h:35,

             from C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/include/user_interface.h:30,

             from C:\Users\James\Documents\Arduino\libraries\uMQTTBroker\src\uMQTTBroker.h:4,

             from C:\Users\James\Documents\Arduino\libraries\uMQTTBroker\src\uMQTTBroker.cpp:2:

C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/libc/xtensa-lx106-elf/include/stdlib.h:78:36: error: conflicts with new declaration with 'C' linkage

int _EXFUN(atoi,(const char *__nptr));

                                ^

C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/libc/xtensa-lx106-elf/include/_ansi.h:65:35: note: in definition of macro '_EXFUN'

#define _EXFUN(name, proto) name proto

                               ^

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

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

@martin-ger
Copy link
Owner

Used Arduino 1.8.5 with ESP Board Vesion 2.4.2. For me it compiles without errors. The first warning is now fixed with the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants