I'm modifing a c project and is the first time I'm tryng to use the stdlib.h and string.h libraries in my project. I'm working on MCUXpresso (IDE based on eclipse). This is my code:
#include <string.h>
#include <stdlib.h>
#include "config.h"
int number=100;
int n1,n2;
char test[5]="test";
char str[5];
extern void fntest(TTASKTABLE *ptrTaskTable)
{
itoa (number,str,10);
n1=strlen(test);
n2=atoi(test);
}
As you can see I've included the header files but the compiler give the errors: undefined reference to 'itoa' ; undefined reference to 'strlen' ; undefined reference to 'atoi' And in my includes folder there is already (by default on my project) the folder containing the standard libraries. I see the functions are used in some other files in the project... I can't understand why I've this error. In the original code the functions are in a body function, I've corrected that. Can you help me please?