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 Subject: RE: Cygwin - linker errors - __assert, __itob and __ftol To: Cygwin 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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/