Arduino: collect2.exe: error: ld returned 5 exit status

Posted on

I spent hours to try to find a solution to fix this error at compilation.

My code don’t have any problem, just the things showed up after upgrading arduino (win XP).

What I did at the end was to add dummy variable to the code and it worked. Try to add 1, 2, 3 , 4 and it worked!!

Example:

byte y1 = 0; byte y2 =0; byte y3 =0; byte y4=0;

good luck!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s