[Lazarus] Error while compiling resources
Sven Barth
pascaldragon at googlemail.com
Wed Apr 18 09:14:13 CEST 2012
Am 18.04.2012 07:31, schrieb patspiper:
> On 18/04/12 01:11, Mattias Gaertner wrote:
>> On Wed, 18 Apr 2012 00:07:31 +0300
>> patspiper<patspiper at gmail.com> wrote:
>>
>>> On 17/04/12 23:57, Mattias Gaertner wrote:
>>>>> I save the project to project1.lpi and unit1.pas
>>>>>
>>>>> I now run it again. It fails with "project1.lpr(19,1) Error: Error
>>>>> while compiling resources".
>>>>>
>>>>> Hint: Start of reading config file
>>>>> C:\lazarus\fpc\2.6.0\bin\i386-win32\fpc.cfg
>>>>> Hint: End of reading config file
>>>>> C:\lazarus\fpc\2.6.0\bin\i386-win32\fpc.cfg
>>>>> Free Pascal Compiler version 2.6.0 [2012/03/14] for i386
>>>>> Copyright (c) 1993-2011 by Florian Klaempfl and others
>>>>> Target OS: Win32 for i386
>>>>> Compiling project1.lpr
>>>>> Compiling unit1.pas
>>>>> Compiling resource
>>>>> Z:\Projects\Delphi\Workflow\Revision\RevAdmin\test\lib\i386-win32\project1.or
>>>>>
>>>>> project1.lpr(19,1) Error: Error while compiling resources
>>>>> Linking project1.exe
>>>>> Fatal: Compilation aborted
>>>> Can you compare the two directories (temp and saved) and tell where the
>>>> difference is?
>>> Is it possible for the IDE to show the error details? Compiling resource
>>> errors always show the generic 'Error: Error while compiling resources'
>>> message which is not very indicative.
>> It now shows the 'Compiling resource<file>' line.
> I was referring more to messages that show the reason of the failure
> such as fpcres not found, duplicate resource xxxx, etc...
>
> On the other hand, the error line seems to always point to the last line
> of the lpr file, even when the error is in another file/unit (example:
> unit with {$R *.lfm} twice).
AFAIK this error line is printed by the compiler which does not print
more specific errors.
Regards,
Sven
More information about the Lazarus
mailing list