Adding a new file to the project


#1

hi,
I want to add a new file to the project. But when I add and compile it,

qutotation
C:\Users\abdullah\Documents\WICED\WICED-SDK-3.7.0\WICED-SDK/apps/snip/uart/uart.c:101: undefined reference toled’
tools/makefiles/wiced_elf.mk:240: recipe for target ‘build/snip.uart-RB_DUO/binary/snip.uart-RB_DUO.elf’ failed
make.exe[1]: *** [build/snip.uart-RB_DUO/binary/snip.uart-RB_DUO.elf] Error 1
make: *** [main_app] Error 2
Makefile:286: recipe for target ‘main_app’ failed`

how can I add a new file to the project.


#2

problem solved. i add library name in .mk file.

NAME := App_Uart_Test

$(NAME)_SOURCES := uart.c
data.c

$(NAME)_INCLUDES := .

GLOBAL_DEFINES := WICED_DISABLE_STDIO


#3

Programming skill +1 :thumbsup: