Can I have Delphi automatically compile RC files?
<p>I thought Delphi would automatically compile resource files when I add them to my program, like</p>
<pre><code>{$R 'resource.rc'}
</code></pre>
<p>but the linker returns an error message <code>Error reading file &quot;D:\resource.rc&quot;</code>. When I look into project options, however, <code>brcc32.exe</code> is explicitly listed as resource compiler to use:</p>
<p><a href="https://i.stack.imgur.com/ZSt9x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZSt9x.png" alt="enter image description here" /></a></p>
<p>I know I can invoke the resource compiler from the CLI, but I'd prefer to have resources compiled automatically. How can I do this? I'm using Delphi XE8.</p>