[fpc-devel] path for *.res file

Yury Sidorov jura at cp-lab.com
Sat May 23 20:39:56 CEST 2009

From: "Vincent Snijders" <vsnijders at vodafonevast.nl>
> Jonas Maebe schreef:
>> On 22 May 2009, at 23:00, Dariusz Mazur wrote:
>>> How to tell compiler where are *.res files.
>> You can't. As you noticed, they are always searched relative to the 
>> directory of the main source file (unless the resource file is 
>> specified using an absolute path)
> And that means, it is really impossible to include a *.rc file in a 
> unit and distrubute the *.res file as compiled resource with your 
> compiled unit.

.rc files are searched relative to the current unit path. .res files 
are placed into units output folder specified by -FU switch. After 
that you can distribute compiled units with compiled .res files 
without sources.


More information about the fpc-devel mailing list