Coding Problem cannot upload adn verify

hello, can u help solve my problem?

the output of the coding is :
Using board 'generic' from platform in folder: C:\Users\End User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0
Using core 'esp8266' from platform in folder: C:\Users\End User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0
Detecting libraries used...
"C:\Users\End User\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\End User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0/tools/sdk/include" "-IC:\Users\End User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0/tools/sdk/lwip2/include" "-IC:\Users\End User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\ENDUSE~1\AppData\Local\Temp\arduino-sketch-B4A5B54E7441AC70C1F5F1879A7849C1/core" -c -w -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_GENERIC"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\Users\End User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\cores\esp8266" "-IC:\Users\End User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\variants\generic" "C:\Users\ENDUSE~1\AppData\Local\Temp\arduino-sketch-B4A5B54E7441AC70C1F5F1879A7849C1\sketch\Blink.ino.cpp" -o nul
Alternatives for ESP8266_Lib.h: []
-> candidates: []
Compilation error: Error: 2 UNKNOWN: exit status 1

This sort of output is the Arduino IDE 2.x's current version of the more intuitive "No such file or directory" error you would see when using the classic Arduino IDE.

When you see such an error it almost always means you need to install the library that contains the missing file.

Often the code you're compiling will come with documentation (either a comment or separate document) that tells you where to get the library dependencies.

Note that libraries may have dependencies on other libraries.

In other cases the author of the code will not have been so kind and you'll need to go on a hunt for the missing library.

A good place to start is the Arduino IDE's Library Manager:

  1. Select Sketch > Include Library > Manage Libraries... from the Arduino IDE's menus.
  2. In the "Filter your search..." box, type some keywords you have gleaned from the missing file name.
  3. Scroll through the results for the right library. Click on it.
  4. Click the Install button.
  5. Wait for the installation to finish.
  6. Click the Close button.
  7. Try compiling your code again.

If you have no luck in Library Manager then load up your favorite search engine and do a search for the missing filename. You will often get multiple results. If you have a lot of results you might add "arduino" as an additional search keyword. I will usually prefer results from since that is where most Arduino libraries are hosted and downloading from there is fast and easy. In some cases there will be multiple libraries that contain the given filename and you'll need to do some evaluation to determine which seems the most appropriate, then try it out.

After downloading the library you found, you'll need to install it. This requires a different process than the Library Manager installation. You will find instructions here:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.