Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-01

Compiled resource file search path

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

denisgolovan

Hi

Could anybody give a hint on which fpc option to use to force compiler search .res files in some directory? I've added -vt switch and it shows that the only file name being searched is in the same directory of referring unit.

It looks like search paths for res files are not I correct? If yes, could it be fixed?

Regards, Denis Golovan
denisgolovan

Hi

Fortunately I don't use Windows when doing development for Windows :) Cross-compiling under Linux is way better.

BR,
Denis

denisgolovan
You can use full/relative path for resources: {$R /path/to/resource/file} or {$R ../relative/resource/file}

Yes. I can.
The problem is that my .res files are not always in the same directory. My build scripts use separate dirs for every arch-os-debug combination.

Now the question to the compiler developers - will you accept my patch if I make .res to be searched in unit output directory (-FU)?

Regards, Denis Golovan
Paul Ishenin
to denisgolovan
denisgolovan wrote
Now the question to the compiler developers - will you accept my patch if I make .res to be searched in unit output directory (-FU)?

Add a separate -F{Some character} switch for resource search.

Best regards,
Paul Ishenin