Hey I am trying to setup UART on my Thingy52 but when I’m trying to compile my project I getting this error message:

I am using GNU Tools ARM Embedded 4.9 2015q3 for compiling and I am using windows 8.1.
This are the things I have tried for solving this problem:
Added this line to the make file:
$(abspath ../../../external/sdk13/components/libraries/uart/app_uart.c) \
$(abspath ../../../external/sdk13/components/libraries/uart/app_uart_fifo.c) \
$(abspath ../../../external/sdk13/components/libraries/uart/retarget.c) \
INC_PATHS += -I$(abspath ../../../external/sdk13/components/libraries/uart)
Added #include "app_uart.h" to the main.c file.
This is how my code looks like on the lines 465, 480, 481 were the error occurs:
const app_uart_comm_params_t comm_params =
{
ANA_DIG0,
ANA_DIG1,
MOS_1,
MOS_2,
APP_UART_FLOW_CONTROL_ENABLED,
false,
UART_BAUDRATE_BAUDRATE_Baud9600
};
APP_UART_FIFO_INIT(&comm_params, //Line 465
UART_RX_BUF_SIZE,
UART_TX_BUF_SIZE,
uart_error_handle,
APP_IRQ_PRIORITY_LOWEST,
err_code);
APP_ERROR_CHECK(err_code);
#ifndef ENABLE_LOOPBACK_TEST
printf("\r\nStart: \r\n");
while (true)
{
uint8_t cr;
while (app_uart_get(&cr) != NRF_SUCCESS); //Line 480
while (app_uart_put(cr) != NRF_SUCCESS); //Line 481
if (cr == 'q' || cr == 'Q')
{
printf(" \r\nExit!\r\n");
while (true)
{
// Do nothing.
}
}
}
#else
// This part of the example is just for testing the loopback .
while (true)
{
uart_loopback_test();
}
#endif
Can anyone see if i am missing something to get the code compiling succesfully?
Additional information:
I have also tried to add this lines in the sdk_config.h file:
//==========================================================
// <q> APP_FIFO_ENABLED - app_fifo - Software FIFO implementation
#ifndef APP_FIFO_ENABLED
#define APP_FIFO_ENABLED 1
#endif
// <e> APP_UART_ENABLED - app_uart - UART driver
//==========================================================
#ifndef APP_UART_ENABLED
#define APP_UART_ENABLED 1
#endif
#if APP_UART_ENABLED
// <o> APP_UART_DRIVER_INSTANCE - UART instance used
// <0=> 0
#ifndef APP_UART_DRIVER_INSTANCE
#define APP_UART_DRIVER_INSTANCE 0
#endif
#endif //APP_UART_ENABLED
// </e>
// <q> RETARGET_ENABLED - retarget - Retargeting stdio functions
#ifndef RETARGET_ENABLED
#define RETARGET_ENABLED 1
#endif
And when i compile the project i get this error message: