[Lazarus] Hello World program generates a File Not Open runtime error

Curt Carpenter 1cjcarpenter at att.net
Sun Jan 29 20:12:38 CET 2012


On 1/29/2012 11:38 AM, Antônio wrote:
> You are right, unchecking -WG it is OK.
>
> Antônio
>
> 2012/1/29 Mattias Gaertner<nc-gaertnma at netcologne.de>:
>> On Sun, 29 Jan 2012 12:31:51 -0200
>> Antônio<antoniog12345 at gmail.com>  wrote:
>>
>>> 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.
>>>
>>> Any problem? Am I missing something?
>> Please check Project options / Compiler options / Linking / Target OS
>> specif options.
>> Make sure the -WG is not checked.
>>
>> Mattias
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
Mattias:
Could you tell us where we find this in the documentation?  I'm sure 
it's there -- I'd just like to add it to my notes since I'll probably 
encounter the same problem at some point :-)
Thanks,
Curt Carpenter




More information about the Lazarus mailing list