IDE.exe stopped working

Arduino: 1.6.6 (Windows XP), Board: "Arduino/Genuino Uno"

collect2.exe: error: ld returned 5 exit status

exit status 1
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

What does this mean and how do I fix it?
Another window even popped up saying that the program stopped working followed by this error in the program.