Sorry for the late reply and again thank you for your patience to help me with my problem. I deactivated my Anti Virus and noticed that the problem disappeared.
I then re-activated my anti virus and the problem returned, so yes my Anti Virus was the source of my problems.
I did scan the folder but no false positives were reported oddly enough. My Anti Virus must be preventing the compiler from accessing certain files…The anti virus I use is Avast but was recommended to switch to another “more capable” AV.