X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sun, 01 Jun 2008 19:47:54 +1200
From: Danny Smith <dannysmith@clear.net.nz>
Subject: RE: Cygwin - linker errors - __assert, __itob and __ftol
To: Cygwin <cygwin@cygwin.com>
Message-id: <000001c8c3bb$cd4b3d60$0201a8c0@THOMAS>
MIME-version: 1.0
X-Mailer: Microsoft Outlook, Build 10.0.6838
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Dave Korn wrote (archived at http://www.cygwin.com/ml/cygwin/2008-05/msg00643.html)
>Tim Prince wrote on 30 May 2008 23:48:
>> C S wrote:
>>> gcj -D__int64="long long" -shared -I C:\Apps\Java\jdk1.6.0_05\include
>
>>> the error i get is: gcj: cannot specify -D without --main  
>
>> might be handled better on the gcc-help list.  I'm not expert enough to
>> explain why --main may be required when making a .dll, but I guess it
>> wants to know the entry function.
>
>  This is not your average -D option, then.

No it is a gcj-specific option (there is not prepocessing in Java)
From  gcj.texi

@item -D@var{name}[=@var{value}]
This option can only be used with @code{--main}.  It defines a system
property named @var{name} with value @var{value}.  If @var{value} is not
specified then it defaults to the empty string.  These system properties
are initialized at the program's startup and can be retrieved at runtime
using the @code{java.lang.System.getProperty} method.\\\


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

