{$mode objfpc}{$H + }--> a new unit has this line which make trouble
Original Reporter info from Mantis: Flo
-
Reporter name: Florian Köberle
Original Reporter info from Mantis: Flo
- Reporter name: Florian Köberle
Description:
A new Unit or a new project unit looks like this:
------------------------------------------
unit Unit1;
{mode objfpc}{
H + }
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs;
type
TForm1 = class ( TForm )
private
{ private declarations }
public
{ public declarations }
end;
var
Form1 : TForm1;
implementation
initialization
{$I unit1.lrs}
end.
------------------------------------------
When I try to compile it stops at line three with
that error message:
------------------------------------------
Unable to load old resouce file.
The resource file is the first include file in the
initialization section.
For example {$I Unit1.lrs}.
Probably a synax error.
------------------------------------------
The Problem ist the {$H + }
If I change it to {H+} than I can compile...
Mantis conversion info:
- Mantis ID: 1136
- OS: Ubuntu Linux
- OS Build: 5.04
- Build: 09-03-2005 (Revision 7618)
- Version: 0.9.9 (SVN)