From 5ee7c5081900358e2cf95a6b183c2e3e2e57e2f6 Mon Sep 17 00:00:00 2001 From: Joshua Daniel Franklin Date: Thu, 30 Sep 2004 05:03:52 +0000 Subject: 2004-09-30 Joshua Daniel Franklin * 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. --- winsup/doc/how-programming.texinfo | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'winsup/doc/how-programming.texinfo') 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 -- cgit v1.2.3