Error: Error while compiling resources lazarus / 13-General ---------------------------------------------------------------------- hakelm · 2012-03-29 15:58 Today I tested my new Lazarus 0.9.30.4 on Windows with some of the supplied examples and got error messages like: lclimager.lpr(26,1) Error: Error while compiling resources The problem disappears if you remove or comment out the line similar to: {$IFDEF WINDOWS}{$R lclimager.rc}{$ENDIF} This doesn't seem to be an issue on Linux. H ---------------------------------------------------------------------- Leledumbo · 2012-03-29 23:26 I've answered a few questions about this. This is caused by the change in resource directive used in the .lpr. If you create new project, you'll see that it's now: Code: [Select]{$R *.res}instead of: Code: [Select]{$IFDEF WINDOWS}{$R lclimager.rc}{$ENDIF}Simply change to the former to solve this issue. Of course it doesn't happen on linux or other non-windows platform as the directive is only active for windows target previously. Since version 2.4, the compiler supports resources on all platforms.