I did so already but it changed nothing. Same errors displayed and I have used F5 in the Project explorer to refresh stuff...
Then as a final test I used F5 in the code editor window and now the errors went away!
Strange, shouldn't Eclipse be able to do this by itself?
Anyway, errors gone so I will continue copying sample code....