Hi Alex,
if you are going to use external compiler like IAR, you need to setup compiler - ideally in new project wizard. This method also configure paths and build variables. If you switch the compiler in an existing project - it sometimes brings such error messages and you need manually fix the paths and So on.