Error writer.c:(.text._write_r+0x12): undefined reference to `_write'

Hello, guys, I'm trying to compile a code that parsing my messages,

But I have an error and I don't know what it's mean or how to fix it.

#include<string.h>
#include<stdio.h>
#define discuss_tm_gcs Serial

 String test="I have finish my day, AERACCESS";
 int str_len=0;
//char input[]= "";


void setup() {
  
  str_len = test.length() + 1; 
  char char_array[str_len];
  test.toCharArray(char_array, test.length() + 1);
  char *token= strtok(char_array," ");
  while(token)
          { 
              puts(token);
             token=strtok(NULL," ");
          }
     
}

But i have a an error that says:

c:/program files (x86)/arduino/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m\libc.a(lib_a-writer.o): In function `_write_r':

writer.c:(.text._write_r+0x12): undefined reference to `_write'

collect2.exe: error: ld returned 1 exit status

Erreur de compilation pour la carte Teensy 3.2 / 3.1

 puts(token);

puts?
Where to?

where to? I didn't understand what you're trying to say

puts it's like a sprintf no ?? normally in another compiler, this code is working but in Arduino it's not

puts writes to stdout.

Do you have stdout to write to?

puts it's like a sprintf no ?

No. sprintf writes to memory.

Also posted at:
https://stackoverflow.com/q/52042799
If you're going to do that then please be considerate enough to add links to the other places you cross posted. This will let us avoid wasting time due to duplicate effort and also help others who have the same questions and find your post to discover all the relevant information. When you post links please always use the chain links icon on the toolbar to make them clickable.

pert:
Also posted at:
https://stackoverflow.com/q/52042799

Suddenly, I'm disinterested.

The Arduino environment doesn’t have stdout or stdin bye default. You need to essentially create them by defining ... _write()

You could:
#define puts(s) Serial.print(s)