On Mon, 30 Nov 2009, Paul Ishenin wrote:

Hello, FPC developers' list.

This weekend Mattias has implemented an option for the IDE to use FPC resources for projects and packages. Loading of forms from such resources were made before so there are no more limitations to start use them instead of LRS files.

So I converted one our work project units to {R *.lfm} directive instead of {$I *.lrs}. And as soon as I tried to compile I've got an error: "Error while compiling resources". Not informative at all. I scanned the compiler sources for this error and found with what arguments fpcres was started.

I started it from the command line and found the real error:
"No known file format detected for file 'C:\paul\projects\medavia\lib\i386-win32\fr_page_request2.lfm'"

Can compiler show me 2 errors instead of one:

Error while compiling resources:
No known file format detected for file 'C:\paul\projects\medavia\lib\i386-win32\fr_page_request2.lfm'

Some questions:
1. Isn't it lazarus that eats the error ? 2. Is the error you show here a FPCres error ?
If 2 is correct (and I think it is), the compiler has no power over what fpcres 
outputs to
screen.

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to