ld returned 1 exit status

i got this error and i looked up on google but cant find it why does this thing happen

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.

You'll need to post your code and the full error message to get any meaningful answers.

That's an extremely generic error that really doesn't tell us much. If you scroll up the black console window a the bottom of the Arduino IDE window you will see there is much more to it.

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).