The use of the ESP8266 in the world of IoT

User avatar
By trendchaster
#32433 Hello Guys,
When I try to compile code using Mesh lib it shows following error .Any guest how to resolve it?What will be the issue?
AR build/test_app.a
LD build/test.out
c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x598): undefined reference to `user_init'
c:/Espressif/ESP8266_SDK/lib\libmain.a(app_main.o): In function `user_rf_pre_init':
(.irom0.text+0x804): undefined reference to `user_init'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe: *** [build/test.out] Error 1
C:/Users/ABC/worksorg/mesh/Makefile:187: recipe for target 'build/test.out' failed

11:33:15 Build Finished (took 1s.242ms)
User avatar
By kolban
#32456 The function called "user_init" must be supplied by your own application. It is the entry point into your own code execution. It is similar in nature to main(int argc, char *argv[]) in "C".

See page 15 of the SDK 1.4 Programmers Guide.

http://bbs.espressif.com/download/file.php?id=835
User avatar
By trendchaster
#32515 In my user_main.c file I already included this 'user_rf_pre_init' and`user_init'.Still it shows error.I am using eclipse Editor.I dont know whats the issue with this Editor.