4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 00:07:36 +08:00

2004-09-30 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>

* how-programming.texinfo: Add gcj note to WinMain@16 FAQ.
	* how-using.texinfo: Add FAQ about network shares and authentication.
	* install.texinfo: Add "Where is make" to FAQ subtitle.
This commit is contained in:
Joshua Daniel Franklin 2004-09-30 05:03:52 +00:00
parent 09ebdaf715
commit 5ee7c50819
4 changed files with 39 additions and 20 deletions

View File

@ -1,3 +1,9 @@
2004-09-30 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
* how-programming.texinfo: Add gcj note to WinMain@16 FAQ.
* how-using.texinfo: Add FAQ about network shares and authentication.
* install.texinfo: Add "Where is make" to FAQ subtitle.
2004-09-24 Corinna Vinschen <corinna@vinschen.de> 2004-09-24 Corinna Vinschen <corinna@vinschen.de>
* cygwinenv.sgml: smbntsec is not on by default. * cygwinenv.sgml: smbntsec is not on by default.

View File

@ -78,10 +78,9 @@ MAKE_MODE to "UNIX" (actually case is not significant) or "WIN32"
@subsection Why the undefined reference to @samp{WinMain@@16}? @subsection Why the undefined reference to @samp{WinMain@@16}?
Try adding an empty main() function to one of your sources. If you're using @samp{gcc}, try adding an empty main() function to one
of your sources. Or, perhaps you have @samp{-lm} too early in the
Or, perhaps you have @samp{-lm} too early in the link command line. It link command line. It should be at the end:
should be at the end:
@example @example
bash$ gcc hello.c -lm bash$ gcc hello.c -lm
@ -101,6 +100,12 @@ works, but
This is an artifact of libm.a being a symbolic link to libcygwin.a. This is an artifact of libm.a being a symbolic link to libcygwin.a.
If you're using GCJ, you need to pass a "--main" flag:
@example
gcj --main=Hello Hello.java
@end example
@subsection How do I use Win32 API calls? @subsection How do I use Win32 API calls?
@strong{(Please note: This section has not yet been updated for the latest @strong{(Please note: This section has not yet been updated for the latest

View File

@ -27,24 +27,33 @@ containing packages, see
@subsection Why is Cygwin suddenly @emph{so} slow? @subsection Why is Cygwin suddenly @emph{so} slow?
If you recently upgraded the @samp{cygwin} package and suddenly If you recently upgraded and suddenly @emph{every} command takes a
@emph{every} command takes a @emph{very} long time, then you probably @emph{very} long time, then something is probably attempting to
have the obsolete @code{//c} notation in your PATH. This now means access a network share. You may have the obsolete @code{//c}
the @emph{network share} @code{c}, which will slow things down notation in your PATH or startup files. This now means the
tremendously if it does not exist. See then next FAQ entry. @emph{network share} @code{c}, which will slow things down
tremendously if it does not exist.
@subsection Why doesn't //c (for C:) work anymore?
(Similarly for any drive letter, e.g. @code{//z} for @code{Z:})
This ``feature'' has long been deprecated, and no longer works at all
in the latest release. As of release 1.3.3, @code{//c} now means the
@emph{network share} @code{c}.
Using //c (for C:) doesn't work anymore. (Similarly for any drive
letter, e.g. @code{//z} for @code{Z:}) This ``feature'' has long been
deprecated, and no longer works at all in the latest release. As of
release 1.3.3, @code{//c} now means the @emph{network share} @code{c}.
For a detailed discussion of why this change was made, and how deal For a detailed discussion of why this change was made, and how deal
with it now, refer to with it now, refer to
@file{http://sources.redhat.com/ml/cygwin/2001-09/msg00014.html}. @file{http://sources.redhat.com/ml/cygwin/2001-09/msg00014.html}.
@subsection Why can't I access my network shares with @samp{cron}, or when using pubkey authentication with @samp{ssh}?
Some Cygwin services normally run as the SYSTEM user, which has
certain limitations. Under the Windows authentication scheme, the
SYSTEM user cannot access network shares that require authentication.
For more information, see
@file{http://cygwin.com/cygwin-ug-net/ntsec.html}.
Workarounds include using public network share that does not require
authentication (for non-critical files), or running the service as
your own user with @samp{cygrunsrv}.
@subsection How should I set my PATH? @subsection How should I set my PATH?
This is done for you in the file /etc/profile, which is sourced by bash This is done for you in the file /etc/profile, which is sourced by bash

View File

@ -90,8 +90,7 @@ disk if you are paranoid.
This should be safe, but only if Cygwin Setup is not substituted by This should be safe, but only if Cygwin Setup is not substituted by
something malicious, and no mirror has been compromised. something malicious, and no mirror has been compromised.
@subsection What packages should I download? @subsection What packages should I download? Where are 'make', 'gcc', 'vi', etc?
When using Cygwin Setup for the first time, the default is to install When using Cygwin Setup for the first time, the default is to install
a minimal subset of packages. If you want anything beyond that, you a minimal subset of packages. If you want anything beyond that, you
will have to select it explicitly. See will have to select it explicitly. See
@ -100,7 +99,7 @@ packages.
If you want to build programs, of course you'll need @samp{gcc}, If you want to build programs, of course you'll need @samp{gcc},
@samp{binutils}, @samp{make} and probably other packages from the @samp{binutils}, @samp{make} and probably other packages from the
``Devel'' category. ``Devel'' category. Text editors can be found under ``Editors''.
@subsection How do I just get everything? @subsection How do I just get everything?