Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 71771 invoked from network); 30 Jul 2002 05:54:13 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 30 Jul 2002 05:54:13 -0000 Received: (qmail 18657 invoked by uid 97); 30 Jul 2002 05:54:33 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 18567 invoked by uid 97); 30 Jul 2002 05:54:33 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 6825 invoked by uid 98); 29 Jul 2002 17:57:35 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: Mon, 29 Jul 2002 13:57:10 -0400 Message-ID: From: kkonaka@mac.com To: ant-user@jakarta.apache.org Subject: Re: System.loadLibrary() hangs on win2k cmd.exe console? In-Reply-To: References: <20020729144443.53927.qmail@web20415.mail.yahoo.com> <20020729144652.73789.qmail@web20413.mail.yahoo.com> User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/20.7 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > now I'm thinking about dead-lock related to STDLIB > initialization routines (possibly coming from(?) ). I've tried this and confirmed that, if I simply say: -- % cl -Ic:\java\include -Ic:\java\include\win32 -LD MyProg.c -FeMyProg.dll -- (as in the java tutorial at http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step5.html) things DOES hang, but if I say this instead: -- % cl -Ic:\java\include -Ic:\java\include\win32 -c MyProg.c % link /dll /nodefaultlib /out:MyProg.dll MyProg.obj %MSC%\lib\MSVCRT.LIB %MSC%\lib\kernel32.lib -- the created DLL now doesn't hang the JVM and works just fine. -I still don't think the above command lines are optimal, but anyway this appears to be the _problem_ :) kenji ps., does any service pack updates fix this automatically? -- To unsubscribe, e-mail: For additional commands, e-mail: