Not new I know but..pulling my hair out over this

Hi
New here, very.
Just started with Arduino Uno and all was going well until today.
I uploaded a few example Sketches, all good, even wrote one of my own (very basic) and everything was fine.
Today everything I try to compile/upload, including example Sketches that worked fine yesterday..I get the same error message when trying to Verify in Arduino IDE
Compilation error: exit status 1
I searched and read on here with no joy.
I tried all 3 Unos I have, different USB Leads and still cannot resolve this.
Any help/ Advice would be greatly appreciated.
TIA
Steve

For help, please read and follow the directions in the "How to get the best out of this forum" post, linked at the head of every forum categoy.

That is the generic "some error occurred", you may need to scroll up to find the actual error message. No need to swap boards or USB cables, this is an error with compiling the sketch, not uploading. "Verify" does not even need a board to be connected to the computer.

Ensure you have the Uno selected. Under tools -> board

I tried compiling code for different boards to ensure my code would run on them. Some failed.

Please post the complete error message, not just 'exit status 1'.

FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8
Using core 'arduino' from platform in folder: C:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8

Detecting libraries used...
C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8\cores\arduino -IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8\variants\standard C:\Users\User\AppData\Local\arduino\sketches\922CA7739334B4F8131D4D28ED48198A\sketch\Blink.ino.cpp.merged -o nul -MMD -MF C:\Users\User\AppData\Local\arduino\sketches\922CA7739334B4F8131D4D28ED48198A\sketch\Blink.ino.cpp.merged.libsdetect.d
Generating function prototypes...
C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8\cores\arduino -IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8\variants\standard C:\Users\User\AppData\Local\arduino\sketches\922CA7739334B4F8131D4D28ED48198A\sketch\Blink.ino.cpp.merged -o C:\Users\User\AppData\Local\Temp\1687692381\sketch_merged.cpp
C:\Users\User\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\User\AppData\Local\Temp\1687692381\sketch_merged.cpp

Compiling sketch...
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\User\\AppData\\Local\\arduino\\sketches\\922CA7739334B4F8131D4D28ED48198A\\sketch\\Blink.ino.cpp" -o "C:\\Users\\User\\AppData\\Local\\arduino\\sketches\\922CA7739334B4F8131D4D28ED48198A\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\User\AppData\Local\arduino\cores\arduino_avr_uno_a6d4abe36c2161e8817fb8762b5ac2ac\core.a
Linking everything together...
"C:\\Users\\User\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\User\\AppData\\Local\\arduino\\sketches\\922CA7739334B4F8131D4D28ED48198A/Blink.ino.elf" "C:\\Users\\User\\AppData\\Local\\arduino\\sketches\\922CA7739334B4F8131D4D28ED48198A\\sketch\\Blink.ino.cpp.o" "C:\\Users\\User\\AppData\\Local\\arduino\\sketches\\922CA7739334B4F8131D4D28ED48198A/..\\..\\cores\\arduino_avr_uno_a6d4abe36c2161e8817fb8762b5ac2ac\\core.a" "-LC:\\Users\\User\\AppData\\Local\\arduino\\sketches\\922CA7739334B4F8131D4D28ED48198A" -lm
C:\Users\User\AppData\Local\Temp\ccTIpFkF.ltrans0.ltrans.o: In function `setup':
C:\Users\User\AppData\Local\Temp\.arduinoIDE-unsaved202657-14596-y5dq27.5fuj\Blink/Blink.ino:28: undefined reference to `pinMode'
C:\Users\User\AppData\Local\Temp\ccTIpFkF.ltrans0.ltrans.o: In function `loop':
C:\Users\User\AppData\Local\Temp\.arduinoIDE-unsaved202657-14596-y5dq27.5fuj\Blink/Blink.ino:33: undefined reference to `digitalWrite'
C:\Users\User\AppData\Local\Temp\.arduinoIDE-unsaved202657-14596-y5dq27.5fuj\Blink/Blink.ino:35: undefined reference to `digitalWrite'
collect2.exe: error: ld returned 1 exit status
exit status 1

Compilation error: exit status 1

Hope this helps

I think you have to save your sketch in your sketchbook folder first so the IDE knows where to look for everything.
My path is something like users > Hallowed31> documents > arduino > sketchbook and my libraries are a folder I made within my sketchbook.

Make sure under Preferences in the IDE that the path matches where your sketchbook is and should be

Please post the full sketch, using code tags when you do

Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

How many tabs do you have open in the IDE ?

Hi
as for Tabs in IDE, at first a few, but I tried closing them all to just one but the error persisted.
Guys here asking for Tags and stuff which is beyond my current knowledge, but, if I am using the the supplied examples within the Arduino IDE, it should work eh?

That's the critical evidence. Something's corrupted your IDE install, OR, you've got something misconfigured in the IDE. Those two functions are basic to Arduino installs. Others will know what's wrong, I'm on a mission just now.

Post #8 has simple instructions as to how to add code tags when posting code here

C:\Users\User\AppData\Local\Temp.arduinoIDE-unsaved202657-14596-y5dq27.5fuj\Blink/Blink.ino:33: undefined reference to `digitalWrite'

Any use?

Couple of ideas after you read the pinned post re 'How to get the most from the forum'
then scroll down to Related topics and look at those. If that doesn't help then search the forum on

No use whatsoever

It looks like you are trying to compile the example Blink sketch but who knows whether you have edited or not unless you post the actual sketch from your IDE

As it happens I don't think that the problem is with the sketch itself but please help us eliminate that possibilty

I agree. Since even Blink fails to link against pinMode() and digitalWrite(), I would first suspect the cached/precompiled AVR core or the AVR boards package rather than the sketch.

Closing the IDE and deleting the cached Arduino core/build folders, or reinstalling the "Arduino AVR Boards" package, would be my next step.

Close, read what follows, I already posted it in 13.
That is not an error from the code, that is an installation error.
I have seen it several times, so searching the foru is a good place to start.
I did that and from the many hits I suggest you look at
THIS

Where is your sketchbook location in the IDE under preferences? If it's any cloud service like OneDrive you could get such an error

Just doing a re-install of the IDE will reinstall everything including the basic AVR/ESP32 boards.,

okeys
so how to do these steps please

No, it is on local Drives