[Lazarus] ERROR in a simple console app
Alex Shishkin
alexvins at mail.ru
Sat Jan 15 13:26:39 CET 2011
15.01.2011 15:22, Marcos Douglas пишет:
> Guys,
>
> I tried to run an app, converted from Delphi, and I found some errors...
> So, I tried to run a simple app and I found errors too.
>
> The code (copy here http://wiki.lazarus.freepascal.org/Console_Mode_Pascal):
> program project1;
> {$mode objfpc}{$H+}
> uses
> {$IFDEF UNIX}{$IFDEF UseCThreads}
> cthreads,
> {$ENDIF}{$ENDIF}
> Classes
> { you can add units after this };
> begin
> WriteLn('Hello World!');
> ReadLn;
> end.
>
> When I run inside Lazarus, happen this error:
> Project project1.exe raised exception class 'RunError(103)'
>
> When I run in line command, happen this error:
> An unhandled exception occurred at $0040155B :
> EInOutError : File not open
> $0040155B main, line 10 of project1.lpr
>
>
> My config:
> WinXP - FPC 2.5.1 - Laz 0.9.31 (trunk)
>
> //lists.lazarus.freepascal.org/mailman/listinfo/lazarus
It must be compiled as console application on w32.
More information about the Lazarus
mailing list