Well as the title says, I keep getting an Undefined Reference to error but I don't know why..
I have a main routine which has the header of the function I wanna use included, which therefore is included by the cpp file which defines the function. I also included the path to the project settings
I know I should post code but I am not allowed to do that but still hope I can get some hints on solving this error.
Thanks in advance
UART_write(UARTvar, LVL); //This is where I call the function
int UART_write(int uart, const char* var);//Declaration in the header
int UART_write(int uart, const char* var)
{
return (int)1;//just for testing
}
undefined reference to `UART_write'