Declaration of variables

johnwasser:
Let me guess. You are using Windows XP?

That was my guess too, when I saw that particular error message.

@KalleL , if you are using a Windows XP machine, take a look here:- many cases of ld.exe crashes. (on windows xp)
(The fix that involves using an early version of "ld.exe" from IDE V1.0.6 works fine, or at least it did for me when I was still using WinXP.)