Ok I fixed it myself. It was a stupid mistake! I have a file called "String.h" in a library project which is being picked up by the header. Probably because I have added the path to as an additional include directory in my test project (where I am getting this error.) Hope this helps someone.