-->
Page 1 of 1

Compilation Error

PostPosted: Wed Oct 28, 2015 1:10 am
by trendchaster
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)

Re: Compilation Error

PostPosted: Wed Oct 28, 2015 8:39 am
by kolban
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

Re: Compilation Error

PostPosted: Thu Oct 29, 2015 1:30 am
by trendchaster
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.