[fpc-devel] fpcres error?
Ondrej Pokorny
lazarus at kluug.net
Tue Nov 17 17:25:06 CET 2026
On 11/17/2026 5:15 PM, Martin Frb via fpc-devel wrote:
> https://gitlab.com/freepascal.org/lazarus/lazarus/-/work_items/42648
>
> It seems fpcres requires quotes, where windres not only does not
> require them, but fails if they are present.
{$R sources.rc} is not valid syntax. See
https://www.freepascal.org/docs-html/prog/progse59.html
You must feed {$R xxx} with a RES file: {$R sources.res}
As an undocumented alternative that accepts an RC file you can use
{$R 'a.rc' 'a.res'}.
Ondrej
More information about the fpc-devel
mailing list