Thanks for reply. I think that came from the way I pasted the code but the problem is with the comments. Here they are pasted properly. The problem is the comment I added which I thought was within the existing comment range but is not. First time I've come across this and I assume the compiler does not pick this up as an error. Thanks again for clearing out the trees so I could see the forest.
Regards
/* YourDuino.com Example Software Sketch
DHT11 Humidity and Temperature Sensor test
Credits: Rob Tillaart
terry@yourduino.com */
Added 1.8" tft color display code
/*-----( Import needed libraries )-----*/