Error compiling for board Arduino Mega or Mega 2560 for CR-10S

I am trying to use Marlin 2.0.9.1 on my CR-10S, I am a total noob to this sort of stuff, any help is appreciated.
C:\Users\rafae\AppData\Local\Temp\ccq9hWya.ltrans0.ltrans.o: In function main': C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to setup'
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status

Here is what I get.

Hi @daredninja. This error usually happens when someone downloads the Marlin.ino file alone and tries to compile it. The Marlin program consists of hundreds of files and you need to download the entire thing.

Because there are many versions and variants and sources for Marlin, I am not able to provide you with detailed instructions based on the information I have now.

I'm guessing you're following a tutorial or instructions of some sort. I you would like me to provide more specific guidance on how to resolve this error, a good place to start would be providing the link to the instructions you're following.

Hello @pert, I was following a youtube video by " The first layer" as it was doing it for my 3D printer ( Cr-10S). Here's the link> Easy Marlin 2.0 for the CR-10S - YouTube. Thank you for the help.

Does your Marlin folder structure look like the one shown at this point in the video?

@pert No, later in the video he said I had to add the creality cr-10s folders that we get from the examples that you find in the configuration folder.

No, he says to add the configuration files from the examples, not folders. That should only overwrite the default configuration files, which would result in the exact same folder structure as shown in the video at th timestamp I linked above. It's only the contents of those two configuration files that will be different.

Anyway, the important part is whether you have the src subfolder in your sketch.

I meant that I copied the files from the folder, my sketch folder only has configuration, configuration_adv, bootscreen and statusscreen. I don't know where to find the src subfolder.

OK, there is your problem. All the source code for Marlin is in that src subfolder. The files you mention are only for the user's configuration.

It will be part of Marlin when you download it.

My recommendation is to delete everything and start over fresh, following the tutorial carefully. I'm sure you'll have success this time around.

I don't if you're talking about the folder above "_Bootscreen" but I have exactly was the video has at 5:12. Easy Marlin 2.0 for the CR-10S - YouTube

Yes. That's the subfolder named src.

So, do you confirm that you do have the src subfolder in your Marlin sketch?

Yes, I do. It was weird since I had to go open all of the files in the src subfolder for it to show up in the sketch. Now I have another problem though.

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\HAL\AVR\u8g_com_HAL_AVR_sw_spi.cpp:65:10: fatal error: U8glib.h: No such file or directory
#include <U8glib.h>
^~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Arduino Mega or Mega 2560.
This is what it is telling me now.

I fixed it by using the tool section in arduino and searching for U8glib and installing it. Now an even bigger issue came out.
Arduino: 1.8.15 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\marlinui_DOGM.h:31:0,

             from C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\marlinui.cpp:130:

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_64128N_2X_HAL::init(pin_t, pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:37:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7565_64128n_HAL_2x_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_64128N_2X_HAL::init(pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:40:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7565_64128n_HAL_2x_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_4X_HAL::init(pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:53:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_HAL_4x_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset); // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_4X_HAL::init(pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:56:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_HAL_4x_hw_spi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset); // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_RRD::init(pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:71:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_rrd_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset);   // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SH1106_128X64_2X_I2C_2_WIRE::init(uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:81:59: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t options = U8G_I2C_OPT_NONE) { U8GLIB::init(&u8g_dev_sh1106_128x64_2x_i2c_2_wire, options); }

                                                       ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1306_128X64_2X_I2C_2_WIRE::init(uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:90:59: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t options = U8G_I2C_OPT_NONE) { U8GLIB::init(&u8g_dev_ssd1306_128x64_2x_i2c_2_wire, options); }

                                                       ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_TFT_320X240_UPSCALE_FROM_128X64::init(uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:103:77: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t cs, uint8_t rs, uint8_t reset = U8G_PIN_NONE) { U8GLIB::init(&u8g_dev_tft_320x240_upscale_from_128x64, cs, rs, reset); }

                                                                         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_MINI12864_2X_HAL::init(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:115:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_uc1701_mini12864_HAL_2x_sw_spi, sck, mosi, cs, a0, reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_MINI12864_2X_HAL::init(uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:118:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_uc1701_mini12864_HAL_2x_hw_spi, cs, a0, reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:131:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_ssd1309_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:134:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_ssd1309_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

In file included from C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\marlinui_DOGM.h:31:0,

             from C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\lcdprint_u8g.cpp:14:

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_64128N_2X_HAL::init(pin_t, pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:37:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7565_64128n_HAL_2x_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_64128N_2X_HAL::init(pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:40:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7565_64128n_HAL_2x_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_4X_HAL::init(pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:53:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_HAL_4x_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset); // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_4X_HAL::init(pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:56:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_HAL_4x_hw_spi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset); // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_RRD::init(pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:71:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_rrd_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset);   // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SH1106_128X64_2X_I2C_2_WIRE::init(uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:81:59: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t options = U8G_I2C_OPT_NONE) { U8GLIB::init(&u8g_dev_sh1106_128x64_2x_i2c_2_wire, options); }

                                                       ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1306_128X64_2X_I2C_2_WIRE::init(uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:90:59: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t options = U8G_I2C_OPT_NONE) { U8GLIB::init(&u8g_dev_ssd1306_128x64_2x_i2c_2_wire, options); }

                                                       ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_TFT_320X240_UPSCALE_FROM_128X64::init(uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:103:77: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t cs, uint8_t rs, uint8_t reset = U8G_PIN_NONE) { U8GLIB::init(&u8g_dev_tft_320x240_upscale_from_128x64, cs, rs, reset); }

                                                                         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_MINI12864_2X_HAL::init(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:115:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_uc1701_mini12864_HAL_2x_sw_spi, sck, mosi, cs, a0, reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_MINI12864_2X_HAL::init(uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:118:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_uc1701_mini12864_HAL_2x_hw_spi, cs, a0, reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:131:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_ssd1309_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:134:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_ssd1309_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

In file included from C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\marlinui_DOGM.h:31:0,

             from C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\marlinui_DOGM.cpp:42:

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_64128N_2X_HAL::init(pin_t, pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:37:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7565_64128n_HAL_2x_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_64128N_2X_HAL::init(pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:40:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7565_64128n_HAL_2x_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_4X_HAL::init(pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:53:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_HAL_4x_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset); // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_4X_HAL::init(pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:56:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_HAL_4x_hw_spi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset); // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_RRD::init(pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:71:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_rrd_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset);   // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SH1106_128X64_2X_I2C_2_WIRE::init(uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:81:59: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t options = U8G_I2C_OPT_NONE) { U8GLIB::init(&u8g_dev_sh1106_128x64_2x_i2c_2_wire, options); }

                                                       ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1306_128X64_2X_I2C_2_WIRE::init(uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:90:59: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t options = U8G_I2C_OPT_NONE) { U8GLIB::init(&u8g_dev_ssd1306_128x64_2x_i2c_2_wire, options); }

                                                       ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_TFT_320X240_UPSCALE_FROM_128X64::init(uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:103:77: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t cs, uint8_t rs, uint8_t reset = U8G_PIN_NONE) { U8GLIB::init(&u8g_dev_tft_320x240_upscale_from_128x64, cs, rs, reset); }

                                                                         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_MINI12864_2X_HAL::init(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:115:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_uc1701_mini12864_HAL_2x_sw_spi, sck, mosi, cs, a0, reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_MINI12864_2X_HAL::init(uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:118:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_uc1701_mini12864_HAL_2x_hw_spi, cs, a0, reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:131:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_ssd1309_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:134:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_ssd1309_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

In file included from C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\marlinui_DOGM.h:31:0,

             from C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\dogm_Statusscreen.h:32,

             from C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\status_screen_DOGM.cpp:32:

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_64128N_2X_HAL::init(pin_t, pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:37:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7565_64128n_HAL_2x_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_64128N_2X_HAL::init(pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:40:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7565_64128n_HAL_2x_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_4X_HAL::init(pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:53:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_HAL_4x_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset); // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_4X_HAL::init(pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:56:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_HAL_4x_hw_spi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset); // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_ST7920_128X64_RRD::init(pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:71:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_st7920_128x64_rrd_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, U8G_PIN_NONE, (uint8_t)reset);   // a0 = U8G_PIN_NONE

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SH1106_128X64_2X_I2C_2_WIRE::init(uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:81:59: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t options = U8G_I2C_OPT_NONE) { U8GLIB::init(&u8g_dev_sh1106_128x64_2x_i2c_2_wire, options); }

                                                       ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1306_128X64_2X_I2C_2_WIRE::init(uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:90:59: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t options = U8G_I2C_OPT_NONE) { U8GLIB::init(&u8g_dev_ssd1306_128x64_2x_i2c_2_wire, options); }

                                                       ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_TFT_320X240_UPSCALE_FROM_128X64::init(uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:103:77: error: 'init' is not a member of 'U8GLIB'

void init(uint8_t cs, uint8_t rs, uint8_t reset = U8G_PIN_NONE) { U8GLIB::init(&u8g_dev_tft_320x240_upscale_from_128x64, cs, rs, reset); }

                                                                         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_MINI12864_2X_HAL::init(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:115:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_uc1701_mini12864_HAL_2x_sw_spi, sck, mosi, cs, a0, reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_MINI12864_2X_HAL::init(uint8_t, uint8_t, uint8_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:118:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_uc1701_mini12864_HAL_2x_hw_spi, cs, a0, reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:131:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_ssd1309_sw_spi, (uint8_t)sck, (uint8_t)mosi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t)':

C:\Users\rafae\AppData\Local\Temp\Temp1_Marlin-2.0.x (1).zip\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:134:13: error: 'init' is not a member of 'U8GLIB'

 U8GLIB::init(&u8g_dev_ssd1309_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);

         ^~~~

exit status 1

Error compiling for board Arduino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.