Error "undefined reference to 'user_init'"
Posted: Sun May 03, 2015 1:02 pm
Hi all.
I've been trying for some time now to compile a simple program with espressif sdk.
The error I get is the following:
This is my code:
Some help would be greatly appreciated.
Thank you
I've been trying for some time now to compile a simple program with espressif sdk.
The error I get is the following:
Code: Select all
LD build/app.out
/home/andrei/workspace/licenta/toolchain/espressif_sdk/esp8266/esp-open-sdk/sdk/lib/libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x3e4): undefined reference to `user_init'
/home/andrei/workspace/licenta/toolchain/espressif_sdk/esp8266/esp-open-sdk/sdk/lib/libmain.a(app_main.o): In function `user_uart_wait_tx_fifo_empty':
(.irom0.text+0x57e): undefined reference to `user_init'
collect2: error: ld returned 1 exit status
make: *** [build/app.out] Error 1
This is my code:
Code: Select all
#include "ets_sys.h"
#include "osapi.h"
void user_init() {
os_printf("SDK version: %s\n", system_get_sdk_versionn());
}
Some help would be greatly appreciated.
Thank you