[Lazarus] Identifier not found, but code completion works....

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Feb 14 08:44:37 CET 2011


Op 2011-02-11 19:29, Bo Berglund het geskryf:
> 
> Notice the second line....
> That is where the Serial.pas file resides and where it is picked up by
> the IDE.

Umm, then I have no clue, sorry.



> 
> unit Serial;

  {$IFDEF FPC}
    {$mode delphi}{$H+}
  {$ENDIF}

> interface
> 
> uses
>   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
>   Forms, Dialogs,Windows;
> 
> type
> ...
>   { TSerial main class }
> 
>   TSerial = class(TComponent)
>   private
> 
> etc
> 
> Do I need to add some kind of switch telling FPC that this file
> originated in Delphi?


Normally you would add the code shown above (below the 'unit' line).



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list