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

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Jan 29 20:43:44 CET 2012


On Sun, 29 Jan 2012 13:12:38 -0600
Curt Carpenter <1cjcarpenter at att.net> wrote:

>[...]
> >> Please check Project options / Compiler options / Linking / Target OS
> >> specif options.
> >> Make sure the -WG is not checked.
> >
> 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 :-)

You will get this only if you start with an Application and then
decide to do some console stuff.

It's explained in the Lazarus book. The -WG option is explained in the
Free Pascal book, the FPC "User's guide", the FAQ and various other
places.
I added a hint to the FAQ and the tutorial.

Mattias




More information about the Lazarus mailing list