[Lazarus] .or and .res files

Paul Ishenin webpirat at mail.ru
Fri Jun 25 18:14:32 CEST 2010


  25.06.2010 23:55, Mark Morgan Lloyd wrote:
> {$IFDEF WINDOWS}{$R hp495x.rc}{$ENDIF}
This one is the old directive.
>
> {$R *.res}    // <=================== THAT ONE
This one is the new directive.

IDE adds the new directive once you edit the project options. It does 
not remove the old one. Probably it should but how to decide whether 
this directive was inserted there automatically or manually? So IDE 
leaves the old directive. As result you get an error with resource 
linking (duplicate resources).

For the new IDE remove the old directive, for the old remove the new one.

Best regards,
Paul Ishenin.




More information about the Lazarus mailing list