GOTTIT!!
In my php.ini file I had the line,
extension_dir=./
I changed this to
extension_dir=c:/php/extensions
and left uncommented the line
extension=php_gd2.dll
Restarted apache and this time when I ran my php file the error message about "undefined function" disappeared. Still a few errors left though, but at least gd is enabled!
Oh yes, I now have a gd section in phpinfo() with "GD support : enabled"
Many thanks.