Problems with compilation and upload

(I'm not good at english)

I was bought arduino yesterday but It is not working.
when I'm click the compilation(sketch?) button the error is appear
like this

avr-g++: error: C:\Users???\AppData\Local\Temp\arduino-sketch-FCDB9F03986D2019245A2DA1647D598B\sketch\sketch_jan24a.ino.cpp: Invalid argument
avr-g++: warning: '-x c++' after last input file has no effect
avr-g++: error: device-specs/specs-atmega328p: No such file or directory

exit status 1

Compilation error: exit status 1

I was tried reinstall
my computer is LG laptop and window 11

I'm noob with computers :frowning:

pls help

Welcome to the forum

Which version of the IDE are you using and how did you install it ?

Arduino IDE 2.0.3 and

One of two possibilities that I can think of:

  1. Corrupted install. You can often solve this by downgrading the relevant board package (e.g. for AVR boards from 1.8.6 to 1.8.3) and next upgrade again.
  2. Do you have spaces in your Windows user name?

Your choice of category was sensible but this more an IDE issue and I'll move your topic to the dedicated IDE 2.0 section of the forum.

(post deleted by author)

DON'T !! It's against forum rules and wastes peoples time.

Reported as cross-post.

I merged both posts.

@ez314 instead of creating new posts, answer the question you got.

I'm really sorry. I wasn't know rules. my apology

but both possibilities not worked. :confused:

@ez314 we need you to provide more information so that we can help you.

Please tell us what is your Windows user name.

If you don't understand what I wrote, use Google Translate to translate it to your native language.

If you still don't understand after that, provide a detailed description of what you don't understand and we will help you to understand it.

It's weird but I'm reset my laptop and finally worked :slight_smile:

I'm glad it is working now. Thanks for taking the time to post an update.

2 posts were split to a new topic: Problem when compiling

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