IDF Console example: undefined reference to "esp_vfs_dev_cdcacm...", not able to compile

Platformio: “Core6.1.7” “Home 3.4.4”
VSCode 1.78.2

Hi. I am not able to compile the example console application with USB CDC from ESP IDF.

Merged 1 ELF section
Successfully created esp32c3 image.
Linking .pio/build/lolin_c3_mini/firmware.elf
/home/deskx/.platformio/packages/toolchain-riscv32-esp/bin/…/lib/gcc/riscv32-esp-elf/11.2.0/…/…/…/…/riscv32-esp-elf/bin/ld: .pio/build/lolin_c3_mini/src/main.o: in function initialize_console': /home/deskx/Documentos/PlatformIO/Projects/IDFTestes/src/main.c:44: **undefined reference to esp_vfs_dev_cdcacm_set_rx_line_endings’**

/home/deskx/.platformio/packages/toolchain-riscv32-esp/bin/…/lib/gcc/riscv32-esp-elf/11.2.0/…/…/…/…/riscv32-esp-elf/bin/ld: /home/deskx/Documentos/PlatformIO/Projects/IDFTestes/src/main.c:47: undefined reference to `esp_vfs_dev_cdcacm_set_tx_line_endings’

collect2: error: ld returned 1 exit status
*** [.pio/build/lolin_c3_mini/firmware.elf] Error 1

.
├── CMakeLists.txt
├── include
│ └── README
├── lib
│ ├── cmd_nvs
│ │ ├── CMakeLists.txt
│ │ ├── cmd_nvs.c
│ │ └── cmd_nvs.h
│ ├── cmd_system
│ │ ├── CMakeLists.txt
│ │ ├── cmd_system.c
│ │ ├── cmd_system_common.c
│ │ ├── cmd_system.h
│ │ └── cmd_system_sleep.c
│ ├── cmd_wifi
│ │ ├── CMakeLists.txt
│ │ ├── cmd_wifi.c
│ │ └── cmd_wifi.h
│ └── README
├── platformio.ini
├── sdkconfig.defaults
├── sdkconfig.lolin_c3_mini
├── src
│ ├── CMakeLists.txt
│ └── main.c
└── test
└── README

platformio.ini:
[env:lolin_c3_mini]
platform = espressif32
board = lolin_c3_mini
framework = espidf

main.c:

#include <stdio.h>
#include “esp_console.h”
#include “esp_vfs_cdcacm.h”
#include <string.h>
#include <fcntl.h>
#include “esp_system.h”
#include “esp_log.h”
#include “linenoise/linenoise.h”
#include “argtable3/argtable3.h”
#include “nvs.h”
#include “nvs_flash.h”
#include “cmd_nvs.h”
#include “cmd_system.h”
#include “cmd_wifi.h”

static void initialize_nvs(void)
{
esp_err_t err = nvs_flash_init();
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
err = nvs_flash_init();
}
ESP_ERROR_CHECK(err);
}

static void initialize_console(void)
{
/* Disable buffering on stdin */
setvbuf(stdin, NULL, _IONBF, 0);

/* Minicom, screen, idf_monitor send CR when ENTER key is pressed */
esp_vfs_dev_cdcacm_set_rx_line_endings(ESP_LINE_ENDINGS_CR);
/* Move the caret to the beginning of the next line on '\n' */
esp_vfs_dev_cdcacm_set_tx_line_endings(ESP_LINE_ENDINGS_CRLF);