delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/01/03:48:22

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019