Compile FAILED but no Problems shown

instead I get a lot of yellow lines

<
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:42: multiple definition of `eingabe_zaehler'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:42: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:17: multiple definition of `defaultSSID'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:17: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:18: multiple definition of `defaultPassword'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:18: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:19: multiple definition of `defaultIP'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:19: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:20: multiple definition of `defaultGateway'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:20: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:21: multiple definition of `defaultSubnet'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:21: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:22: multiple definition of `defaultPin'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:22: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:23: multiple definition of `defaultLaenge'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:23: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:26: multiple definition of `ssid'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:26: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:27: multiple definition of `password'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:27: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:28: multiple definition of `localIP'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:28: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:29: multiple definition of `gateway'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:29: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:30: multiple definition of `subnet'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:30: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:31: multiple definition of `pin'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:31: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:32: multiple definition of `laenge'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:32: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:58: multiple definition of `loopPosY'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:58: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:57: multiple definition of `loopPosX'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:57: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:55: multiple definition of `now'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:55: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:53: multiple definition of `pinOkSet'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:53: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:52: multiple definition of `video'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:52: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:51: multiple definition of `no_buttons'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:51: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:50: multiple definition of `touched'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:50: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:47: multiple definition of `in_code'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:47: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:45: multiple definition of `pin_len'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:45: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:44: multiple definition of `reference_code'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:44: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:40: multiple definition of `showVideo'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:40: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:39: multiple definition of `failed'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:39: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/my_tools.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:38: multiple definition of `pinOk'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:38: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:26: multiple definition of `ssid'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:26: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:27: multiple definition of `password'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:27: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:28: multiple definition of `localIP'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:28: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:29: multiple definition of `gateway'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:29: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:30: multiple definition of `subnet'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:30: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:31: multiple definition of `pin'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:31: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:32: multiple definition of `laenge'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:32: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:45: multiple definition of `pin_len'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:45: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:44: multiple definition of `reference_code'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:44: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:17: multiple definition of `defaultSSID'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:17: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:18: multiple definition of `defaultPassword'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:18: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:19: multiple definition of `defaultIP'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:19: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:20: multiple definition of `defaultGateway'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:20: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:21: multiple definition of `defaultSubnet'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:21: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:22: multiple definition of `defaultPin'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:22: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:23: multiple definition of `defaultLaenge'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:23: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:58: multiple definition of `loopPosY'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:58: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:57: multiple definition of `loopPosX'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:57: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:55: multiple definition of `now'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:55: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:53: multiple definition of `pinOkSet'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:53: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:52: multiple definition of `video'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:52: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:51: multiple definition of `no_buttons'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:51: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:50: multiple definition of `touched'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:50: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:47: multiple definition of `in_code'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:47: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:42: multiple definition of `eingabe_zaehler'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:42: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:40: multiple definition of `showVideo'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:40: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:39: multiple definition of `failed'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:39: first defined here
/Users/mk/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/esp32-s3-devkitc-1-myboard/src/sd_card.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:38: multiple definition of `pinOk'; .pio/build/esp32-s3-devkitc-1-myboard/src/main.cpp.o:/Users/mk/Documents/PlatformIO/Projects/ME-Display/include/config.h:38: first defined here

/>

can not find any of the multiple definitionsons.

They areonly defined in config.h

<

#ifndef _CONFIG_H_

#define _CONFIG_H_

#include <Arduino.h>

#include <WiFi.h>

// ==== for SD Card ===

// SD card CS pin (adjust based on your wiring) // braucht man das, wohl ja da SD.h

const int csPin = 10;

#define SD_MOSI 11

#define SD_MISO 13

#define SD_SCK 12

#define SD_CS 10

// Default values if SD read fails

String defaultSSID = “ELECROW”;

String defaultPassword = “dummyPASS”; // Must be at least 8 chars for WPA2

IPAddress defaultIP(192, 168, 4, 1);

IPAddress defaultGateway(192, 168, 4, 1);

IPAddress defaultSubnet(255, 255, 255, 0);

String defaultPin = “5260”;

String defaultLaenge = “4”;

// Variables to store loaded config

String ssid;

String password;

IPAddress localIP;

IPAddress gateway;

IPAddress subnet;

String pin;

String laenge;

#define TFT_BL 2

// === flags flow control ===

bool pinOk = false; // PIN is valid

bool failed = false; // PIN was invalid

bool showVideo = false; // enable video if true

// Zaehler PIN Eingabe

uint8_t eingabe_zaehler = 0; // digits entered

int reference_code[4]; // to be filled from SD

uint8_t pin_len; // to befilled from SD

// Array enthaelt eingegebene PIN

int in_code[4]; // storage for enter digits

// === more flags ====

bool touched = false; // screen touched

bool no_buttons = true; // keypad not initialized

bool video;

bool pinOkSet = false; // Video und Timer nur einmal

unsigned long now;

int loopPosX = 500;

int loopPosY = 350;

#endif // _CONFIG_H_

/>

before the last changes, quite a lot it compieled fin.

do not want to rollback a have days work.

Read the message carefully!
The messages are long, you have to scroll far to the right to see the problem.

Just a guess:
Probably you have header file which defines variables and constants and probably you include this header file multiple times.

1 Like

The header file most if not all definititions are in is config.h and included nearly everywhere. in main.cpp and most other header files.

The more then 6 years platformIO is my prefered IDE for arduino nano ESP 8266 and ESP32 I never had a problem with nested includes of header files.

As I know the

#ifndef _*HEADERFILENAME_*H_

#define _*HEADERFILENAME_*H_

#endif

should prohibit those problems

This is not a PlatformIO thing but a C/C++ thing!

First you need to know the differences between declaration and definition.

A declaration tells the compiler / linker " there is something named xyz". But it does not allocate space for xyz and it does not assign a value.

The declaration is done in a header file (.h) like so:

myglobals.h:

#ifndef __myglobals__
#define __myglobals__

extern int my_global_variable;

#endif

The definition must be done in one compilation unit (.c or .cpp file):

myglobals.cpp

#include myglobals.h

int my_global_variable = 42;

Now you can include myglobals.h safely into multiple compilation units (.c/.cpp) files.

(*) The include guard (#ifndef...) only protects you to include the header file mulitple times into the same compilation unit (.c/.cpp file)

1 Like