summaryrefslogtreecommitdiffstats
path: root/winsup/doc/how-programming.texinfo
diff options
context:
space:
mode:
authorJoshua Daniel Franklin <joshuadfranklin@yahoo.com>2004-09-30 05:03:52 +0000
committerJoshua Daniel Franklin <joshuadfranklin@yahoo.com>2004-09-30 05:03:52 +0000
commit5ee7c5081900358e2cf95a6b183c2e3e2e57e2f6 (patch)
tree840527bd1b089ad313af0e34a70877f0198e679e /winsup/doc/how-programming.texinfo
parent09ebdaf71599f7f5de489982c7f73143d39820cb (diff)
downloadcygnal-5ee7c5081900358e2cf95a6b183c2e3e2e57e2f6.tar.gz
cygnal-5ee7c5081900358e2cf95a6b183c2e3e2e57e2f6.tar.bz2
cygnal-5ee7c5081900358e2cf95a6b183c2e3e2e57e2f6.zip
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.
Diffstat (limited to 'winsup/doc/how-programming.texinfo')
-rw-r--r--winsup/doc/how-programming.texinfo13
1 files changed, 9 insertions, 4 deletions
diff --git a/winsup/doc/how-programming.texinfo b/winsup/doc/how-programming.texinfo
index 0f9fc70f8..8c548af49 100644
--- a/winsup/doc/how-programming.texinfo
+++ b/winsup/doc/how-programming.texinfo
@@ -78,10 +78,9 @@ MAKE_MODE to "UNIX" (actually case is not significant) or "WIN32"
@subsection Why the undefined reference to @samp{WinMain@@16}?
-Try adding an empty main() function to one of your sources.
-
-Or, perhaps you have @samp{-lm} too early in the link command line. It
-should be at the end:
+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
+link command line. It should be at the end:
@example
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.
+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?
@strong{(Please note: This section has not yet been updated for the latest