Hi
Thanks for the suggestion; I tried to get rid of the virus with "antivirus" software but nothing seemed to work. After some trial and error I narrowed what I thought was the problem causing segment to the minGW compiler (as you inferred). I found that if I deleted everything in the minGW folder except for these (bin, doc, include,lib, libexec, mingw32,share,var) it works fine. Something about the "MinGW - Minimalist GNU for Windows" setup my system doesn't like.
Thanks again