[fpc-pascal]Suppressing the console window in Win32

vkrish at vkrish.cjb.net vkrish at vkrish.cjb.net
Thu Mar 4 10:49:25 CET 2004



> I'm building a graphical application using GameVision
> (http://www.jarroddavis.com/).  The application compiled in FPC opens a
> console window whenever the application is executed.  The application
> compiled in Delphi does not open a console window.  How do I not have the
> console window automatically opened when the application is compiled with
> FPC?

When using gcc under win32 I use -mwindows to create a GUI app. I'm not sure if -mwindows is a gcc switch or a ld (ldw.exe in fpc) switch. If it is ld's option then adding -mwindows to the link stage should eliminate the console.

cheers,
-Krish





More information about the fpc-pascal mailing list