* faq-programming.xml (faq.programming.objective-c): Update for gcc4.

(faq.programming.win32-api): -mwindows does include -lcomdlg32.
	(faq.programming.win32-no-cygwin): Update for removal of -mno-cygwin.
	* overview2.sgml (ov-ex-win): Ditto.
This commit is contained in:
Yaakov Selkowitz 2012-04-23 21:46:46 +00:00
parent f76ca72740
commit 0a5135e32a
3 changed files with 19 additions and 13 deletions

View File

@ -1,3 +1,10 @@
2012-04-23 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* faq-programming.xml (faq.programming.objective-c): Update for gcc4.
(faq.programming.win32-api): -mwindows does include -lcomdlg32.
(faq.programming.win32-no-cygwin): Update for removal of -mno-cygwin.
* overview2.sgml (ov-ex-win): Ditto.
2012-04-05 Corinna Vinschen <corinna@vinschen.de> 2012-04-05 Corinna Vinschen <corinna@vinschen.de>
* new-features.sgml (ov-new1.7.13): Add typeahead description. * new-features.sgml (ov-new1.7.13): Add typeahead description.

View File

@ -62,10 +62,9 @@ would be difficult.
<question><para>Where is Objective C?</para></question> <question><para>Where is Objective C?</para></question>
<answer> <answer>
<para>Objective C hasn't been distributed with the Cygwin version of gcc <para>Support for compiling Objective C is available in the <literal>gcc4-objc</literal>
for a long time. For several reason Cygwin was stuck with gcc version 3.4.4. package; resulting binaries will depend on the <literal>libobjc2</literal>
Fortunately the latest gcc maintainer is quite busy to create a working package at runtime.
gcc 4.x release which also comes with an Objective C package.
</para> </para>
</answer></qandaentry> </answer></qandaentry>
@ -177,7 +176,7 @@ with gdi32 like this:
<para>The regular setup allows you to use the option -mwindows on the <para>The regular setup allows you to use the option -mwindows on the
command line to include a set of the basic libraries (and also command line to include a set of the basic libraries (and also
make your program a GUI program instead of a console program), make your program a GUI program instead of a console program),
including user32, gdi32 and, IIRC, comdlg32. including user32, gdi32 and comdlg32.
</para> </para>
<para>It is a good idea to put import libraries last on your link line, <para>It is a good idea to put import libraries last on your link line,
or at least after all the object files and static libraries that reference them. or at least after all the object files and static libraries that reference them.
@ -194,11 +193,10 @@ as well as the User's Guide section
<question><para>How do I compile a Win32 executable that doesn't use Cygwin?</para></question> <question><para>How do I compile a Win32 executable that doesn't use Cygwin?</para></question>
<answer> <answer>
<para><emphasis role='bold'>(Please note: This section has not yet been updated for the latest net release.)</emphasis> <para>The compilers provided by the <literal>mingw-gcc</literal>,
</para> <literal>mingw64-i686-gcc</literal>, and <literal>mingw64-x86_64-gcc</literal>
<para>The -mno-cygwin flag to gcc makes gcc link against standard Microsoft packages link against standard Microsoft DLLs instead of Cygwin. This is
DLLs instead of Cygwin. This is desirable for native Windows programs desirable for native Windows programs that don't need a UNIX emulation layer.
that don't need a UNIX emulation layer.
</para> </para>
<para>This is not to be confused with 'MinGW' (Minimalist GNU for Windows), <para>This is not to be confused with 'MinGW' (Minimalist GNU for Windows),
which is a completely separate effort. That project's home page is which is a completely separate effort. That project's home page is

View File

@ -35,9 +35,10 @@ the <literal>/usr/share/doc/Cygwin/</literal> directory.
<para> <para>
Developers coming from a Windows background will be able to write Developers coming from a Windows background will be able to write
console or GUI executables that rely on the Microsoft Win32 API instead console or GUI executables that rely on the Microsoft Win32 API instead
of Cygwin using the -mno-cygwin option to GCC. The <command>-shared</command> of Cygwin using the mingw32 or mingw64 cross-compiler toolchains. The
option allows to write Windows Dynamically Linked Libraries (DLLs). The <command>-shared</command> option to GCC allows to write Windows Dynamically
resource compiler <command>windres</command> is also provided. Linked Libraries (DLLs). The resource compiler <command>windres</command>
is also provided.
</para> </para>
</sect1> </sect1>