Author: AlbrechtS Date: 2012-02-24 06:46:10 -0800 (Fri, 24 Feb 2012) New Revision: 9253 Log: clarified console window FAQ
Modified: branches/branch-1.3/README.MSWindows.txt Modified: branches/branch-1.3/README.MSWindows.txt =================================================================== --- branches/branch-1.3/README.MSWindows.txt 2012-02-21 14:05:24 UTC (rev 9252) +++ branches/branch-1.3/README.MSWindows.txt 2012-02-24 14:46:10 UTC (rev 9253) @@ -535,10 +535,23 @@ Windows has a flag that determines whether an application runs in the foreground with a console or in the background -without a console. Use the "-mwindows" option to make your -application run in the background and "-mconsole" to run in -the foreground. +without a console. +If you're using gcc (i.e. MinGW or Cygwin), then use the +linker option "-mwindows" to make your application run in +the background and "-mconsole" to run in the foreground. Use +fltk-config --ldflags to see appropriate linker flags, or use +fltk-config --compile to compile a single source file. + +If you're using MS VC++, then you must set the linker option +"/subsystem:windows" to create a "Windows" program (w/o console +window), or set the linker option "/subsystem:console" for a +console program, i.e. with a console window. These options +are set differently in the FLTK project files, depending on +whether you select a "Debug" or "Release" build. + +Other compilers and build systems may have different options. + Keep in mind that a windows application cannot send output to stdout, even if you run it from an existing console application. @@ -606,3 +619,4 @@ Oct 25 2010 - matt: restructured entire document and verified instructions Dec 20 2010 - matt: merged with README.win32 Dec 22 2010 - AlbrechtS: added newer Cygwin (cross/mingw-w64) options +Feb 24 2012 - AlbrechtS: clarified console window FAQ _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
