[fpc-pascal]Suppressing the console window in Win32

Peter Vreman peter at freepascal.org
Thu Mar 4 08:40:15 CET 2004

> Thanks.  I've never had to use that in Delphi since it defaults to GUI if
> there is no $APPTYPE directive.  Would it make sense for FPC to default to
> GUI if compiled in Delphi compatibility mode?  I'm new to FPC so I don't
> know if that has been discussed before.

That is a Win32 (maybe also MacOSX?) only issue. On other platforms the
default is to have a console.

> Incidentally, can there be a warning printed out when the $APPTYPE
> directive
> is in the wrong place and has no effect?

It already gives a warning:

p.pp(4,2) Warning: Misplaced global compiler switch

More information about the fpc-pascal mailing list