Unable to access stdio.h library
Posted: 06 Apr 2021 22:16
Hi all,
I'm currently working on a project that requires the use of the sprintf function but I am unable to access the stdio.h library on the Necto Studio IDE (Specfically for ARM compilers). I've already searched the library manager, and reinstalled the compiler thinking it might have been an issue with installing the standard C libraries. Below is some sample code, the error for me popping up on the sprintf line, because the program is creating a blank library for stdio.h. Any help is appreciated, thanks!
#include "board.h"
#include "stdio.h"
void application_init()
{
char string[20];
uint8_t num = 12;
sprintf(num, "A dozen is %u /r/n", num);
}
/// @brief Application task.
void application_task()
{
}
/// @brief Application main function.
void main(void)
{
application_init();
while (1)
{
application_task();
}
}
I'm currently working on a project that requires the use of the sprintf function but I am unable to access the stdio.h library on the Necto Studio IDE (Specfically for ARM compilers). I've already searched the library manager, and reinstalled the compiler thinking it might have been an issue with installing the standard C libraries. Below is some sample code, the error for me popping up on the sprintf line, because the program is creating a blank library for stdio.h. Any help is appreciated, thanks!
#include "board.h"
#include "stdio.h"
void application_init()
{
char string[20];
uint8_t num = 12;
sprintf(num, "A dozen is %u /r/n", num);
}
/// @brief Application task.
void application_task()
{
}
/// @brief Application main function.
void main(void)
{
application_init();
while (1)
{
application_task();
}
}