Thanks for the replies guys, I worked it out on the way home.

It's another bug caused by Windows not using the correct slashes in file names so it wasn't matching against my list of required flags for each file.

Andrew