Error compiling T IDE

Can't compile..
__vector_16' referenced in section .vectors' of c:/users/user/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr5/crtatmega328p.o: defined in discarded section .text' of wiring.c.o (symbol from plugin) c:/users/user/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to main'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Nano.

Welcome to the forum

Your topic was MOVED to its current forum category as it is more suitable than the original

Please post your sketch, using code tags when you do

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

It looks like your Arduino IDE install is incomplete or damaged. Install the latest IDE (1.8.19):

Then try your compile again.

I did try compile again... at 1.8.19 and 1.8.18 (Zip and install ver.)
I did uninstall and reinstall 5 times...

it's same

set your Arduino Preferences to show all compiler warnings

arduino_preferences

then try compiling the IDE Example 01.Basics / Blink

Unbenannt

post the full output of the compiler messages in code tags.

Maybe something has corrupted the downloaded AVR support.

In the IDE select:
Tools -> Board: -> Boards Manager...

In the Boards Manager dialog, install an older "Arduino AVR Boards" version (like 1.8.4) and then re-install the latest version (1.8.5). I hope that will fix whatever has gone wrong.

If that doesn't fix it, I would shut down the IDE, delete the whole c:/users/user/appdata/local/arduino15 directory, re-start the IDE, and re-install the latest AVR support with Boards Manager. (If you have installed support for other boards you will have to re-install them as well.)

Thanks for guides.
but my porblem has been remained.. :disappointed:

C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp: In function 'void* operator new(std::size_t, std::nothrow_t)':
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp:59:60: warning: unused parameter 'tag' [-Wunused-parameter]
void * operator new(std::size_t size, const std::nothrow_t tag) noexcept {
^~~
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp: In function 'void* operator new [](std::size_t, const std::nothrow_t&)':
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp:68:63: warning: unused parameter 'tag' [-Wunused-parameter]
void * operator new[](std::size_t size, const std::nothrow_t& tag) noexcept {
^~~
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp: In function 'void operator delete(void*, const std::nothrow_t&)':
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp:103:55: warning: unused parameter 'tag' [-Wunused-parameter]
void operator delete(void* ptr, const std::nothrow_t& tag) noexcept {
^~~
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp: In function 'void operator delete [](void*, const std::nothrow_t&)':
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\cores\arduino\new.cpp:106:57: warning: unused parameter 'tag' [-Wunused-parameter]
void operator delete[](void* ptr, const std::nothrow_t& tag) noexcept {
^~~
__vector_16' referenced in section .vectors' of c:/users/user/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr5/crtatmega328p.o: defined in discarded section .text' of wiring.c.o (symbol from plugin) c:/users/user/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to main'
collect2.exe: error: ld returned 1 exit status
exit status 1

Sorry. If deleting everything and re-installing the latest version doesn't fix it I don't know what will.

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