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

Error : implicit declaration of function #14

Open
Ashu2k opened this issue Mar 23, 2016 · 0 comments
Open

Error : implicit declaration of function #14

Ashu2k opened this issue Mar 23, 2016 · 0 comments

Comments

@Ashu2k
Copy link

Ashu2k commented Mar 23, 2016

First of all thank you so much for the code. I need a little bit of your help now.
I am using Eclipse IDE (Mars) with windows to develop my project. I have included all the necessary files required for your project and made all the necessary change in makefile, user_main.c and user_config.h (otaupdate project). But I am getting this error when trying to build the project

`mingw32-make.exe -f C:/Users/Ashutosh/workspace/ota/Makefile all
CC -c ./user/user_main.c -o .objs/user_main.o
In file included from ./user/user_main.c:12:0:
./user/user_main.c: In function 'connect_status_check':
c:/Espressif/ESP8266_SDK_130/include/osapi.h:42:19: error: implicit declaration of function 'os_printf_plus' [-Werror=implicit-function-declaration]
#define os_printf os_printf_plus
^
./user/user_main.c:34:5: note: in expansion of macro 'os_printf'
os_printf("Got IP, start update\n");
^
c:/Espressif/ESP8266_SDK_130/include/osapi.h:31:25: error: implicit declaration of function 'ets_timer_disarm' [-Werror=implicit-function-declaration]
#define os_timer_disarm ets_timer_disarm
^
./user/user_main.c:39:5: note: in expansion of macro 'os_timer_disarm'
os_timer_disarm(&connect_check_timer);
^
c:/Espressif/ESP8266_SDK_130/include/osapi.h:32:24: error: implicit declaration of function 'ets_timer_setfn' [-Werror=implicit-function-declaration]
#define os_timer_setfn ets_timer_setfn
^
./user/user_main.c:40:5: note: in expansion of macro 'os_timer_setfn'
os_timer_setfn(&connect_check_timer, (os_timer_func_t )connect_status_check, NULL);
^
c:/Espressif/ESP8266_SDK_130/include/osapi.h:30:31: error: implicit declaration of function 'ets_timer_arm_new' [-Werror=implicit-function-declaration]
#define os_timer_arm(a, b, c) ets_timer_arm_new(a, b, c, 1)
^
./user/user_main.c:41:5: note: in expansion of macro 'os_timer_arm'
os_timer_arm(&connect_check_timer, 5000, 0);
^
./user/user_main.c: In function 'user_init':
c:/Espressif/ESP8266_SDK_130/include/osapi.h:12:21: error: implicit declaration of function 'ets_delay_us' [-Werror=implicit-function-declaration]
#define os_delay_us ets_delay_us
^
./user/user_main.c:54:3: note: in expansion of macro 'os_delay_us'
os_delay_us(1000000);
^
./user/user_main.c:58:3: error: implicit declaration of function 'uart0_tx_buffer' [-Werror=implicit-function-declaration]
uart0_tx_buffer("\n", os_strlen("\n"));
^
In file included from ./user/user_main.c:12:0:
c:/Espressif/ESP8266_SDK_130/include/osapi.h:23:19: error: implicit declaration of function 'ets_strlen' [-Werror=implicit-function-declaration]
#define os_strlen ets_strlen
^
./user/user_main.c:58:25: note: in expansion of macro 'os_strlen'
uart0_tx_buffer("\n", os_strlen("\n"));
^
c:/Espressif/ESP8266_SDK_130/include/osapi.h:16:19: error: implicit declaration of function 'ets_memcpy' [-Werror=implicit-function-declaration]
#define os_memcpy ets_memcpy
^
./user/user_main.c:72:3: note: in expansion of macro 'os_memcpy'
os_memcpy(&stationConf.ssid, ssid, 32);
^
cc1.exe: all warnings being treated as errors
mingw32-make.exe: *
* [.objs/user_main.o] Error 1
C:/Users/Ashutosh/workspace/ota/Makefile:258: recipe for target '.objs/user_main.o' failed

14:28:57 Build Finished (took 5s.326ms)`

I tried with SDK version 1.5 and 1.3 but i get the same error every time.
I use the same header file in my other projects "osapi.h" and it works fine.
I don't know where the problem exists. Any help would be appreciated

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

1 participant