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

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jan 30 08:57:28 CET 2012


On Sun, 29 Jan 2012 21:36:00 -0500
waldo kitty <wkitty42 at windstream.net> wrote:

> On 1/29/2012 10:42, Antônio wrote:
> >> But you can fill in a bug report and request to add the the templates and
> >> IFDEF for windows that add console mode, or something like that
> >
> > I think this is a good idea.
> >
> > {$IFDEF Windows}{$apptype console}{$ENDIF}
> 
> manually or automatic? i don't know that i can remember to do this for all the 
> apps that i'm headed towards that i develop and test on winwhatever with the 
> ultimate goal of simply compiling on OS/2 and placing in production... this 
> should not have to be anything manually handled... IMHO of course...

It was an user error.
You don't need to add the directives.

Mattias




More information about the Lazarus mailing list