Forum > Editor

Lazarus 0.9.6 - LAZARUSRESOURCES Identifier not found

(1/2) > >>

Mikenoworth:
Alright. This one is baffling me. I have compiled my test app. about.. Ooo.. 100-150 times already.. Well after making some quick bug fixes, I compiled it again, and got this error:

Unit1.lrs(3,1) Fata: Syntax error, ";" expected but "identifier LAZARUSRESOURCES" found.

I'm not sure what to make of it. I checked all the units included with a template app, and they're all there. Is there a file I might have changed unknowingly ?? Some code somewhere ?? Any help please, I'd really like to continue programming my script engine. :D

P.S. - I have attempted reinstalling Lazarus. Installed fine, same error. I would like to not have to remove it and install, but since an install did not change, it must be a project problem (code somewhere, project file messed up some where).

hombergs:
Add LResources to your uses clause ion the Unit1.pas.
After doing this the compile should work. ;)

Mikenoworth:
----------------------------------------------------------------------------------------------------------
unit Unit1;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls,

  Script, Buttons;

----------------------------------------------------------------------------------------------------------

Sorry. I didn't state it well, but I did check my uses clause before hand, it's already there.

I thought about replacing it with a fresher lresources (maybe it became corrupt) but replacing it was already done, as I said, I reinstalled Lazarus.

Maybe I could remove it from uses, attempt a compile, the add it again and compile.

Mikenoworth:
Removing it and adding it again did not work either. This is very frustrating.

Mikenoworth:
Ah, I found something. The LFM file seems to contain some invalid entries, which was reported by lazarus after loading another project, then loading my current project again. But, it doesn't say what or where, so I guess I'll go through it and see what may be wrong, of course.. I don't see how this ties to lazarusresources not being found, but I will give it a shot. :D

Navigation

[0] Message Index

[#] Next page

Go to full version