g_LCDML_DISP_lang_ Error on LCDMenuLib2.macros.h

Hi Guys,

when i compile LCDML program example of LCDMenuLIB2 on Arduino IDE i obtain no error and all function is OK.

Otherwise i compile the example software on VScode and obtain this error

/home/valerio/.arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10810 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/valerio/.arduino15/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/valerio/.arduino15/packages/arduino/hardware/avr/1.8.2/variants/mega -I/home/valerio/Arduino/libraries/Arduino_FreeRTOS_Library-master/src -I/home/valerio/Arduino/libraries/U8glib/src -I/home/valerio/Arduino/libraries/LCDMenuLib2/src -I/home/valerio/Arduino/libraries/IRremote /tmp/arduino_build_665828/sketch/empty-translation-unit.cpp -o /tmp/arduino_build_665828/sketch/empty-translation-unit.cpp.o
In file included from /home/valerio/.arduino15/packages/arduino/hardware/avr/1.8.2/cores/arduino/Arduino.h:28:0,
                 from /tmp/arduino_build_665828/sketch/ArduinoMenuFreeRtos.ino.cpp:1:
/home/valerio/Scrivania/ArduinoMenuFreeRtos/LCDML_display_menu.ino: In function 'void lcdml_menu_display()':
/home/valerio/Arduino/libraries/LCDMenuLib2/src/LCDMenuLib2_macros.h:68:54: error: 'g_LCDML_DISP_lang_lcdml_table' was not declared in this scope
                 strcpy_P(var, (char*)pgm_read_word(&(g_LCDML_DISP_lang_ ## lang ## _table[id])));\

The code error are present in LCDMenuLib2_macros.h and the step of code error is this.

 /* ------------------
     * DISP / MENU
     * ------------------
     */

    // get global language variable for name xyz
    #define LCDML_DISP_lang(name, lang)           g_LCDML_DISP_lang_ ## lang ## _ ## name ## _var

    // call repeat of function
    #define LCDML_DISP_initFunction(N)      LCDML_DISP_func_repeat(N);

    #ifndef _LCDML_ESP
    
        // stored in flash (Arduino)
        #define LCDML_langDef(name, lang, content) \
            const char g_LCDML_DISP_lang_ ## lang ## _ ## name ##_var[] PROGMEM = {content}

         #define LCDML_getCustomContent(lang, var, id) \
            if(id < _LCDML_NO_FUNC) {\
                strcpy_P(var, (char*)pgm_read_word(&(g_LCDML_DISP_lang_ ## lang ## _table[id])));\
            }      

        #define LCDML_createCustomLang(N, lang) \
            const char * const g_LCDML_DISP_lang_ ## lang ## _table[] PROGMEM = { LCDML_DISP_lang_repeat(N, lang) }

        #define LCDML_getCustomElementName(lang, var, element_id) \
            if(element_id < _LCDML_NO_FUNC && (sizeof(g_LCDML_DISP_lang_ ## lang ## _table)-1) >= element_id) {\
                strcpy_P(var, (char*)pgm_read_word(&(g_LCDML_DISP_lang_ ## lang ## _table[element_id])));\
            }

    #else
.....
.....

I don’t understand where is the problem.

Can you help me?

Thank you very much.

Bye.