ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenji Konaka <kkon...@mac.com>
Subject [Fwd: Re: System.loadLibrary() hangs on win2k cmd.exe console?]
Date Tue, 30 Jul 2002 01:40:54 GMT


-------- Original Message --------
Subject: Re: System.loadLibrary() hangs on win2k cmd.exe console?
Date: Mon, 29 Jul 2002 13:57:10 -0400
From: kkonaka@mac.com
To: ant-user@jakarta.apache.org
References: <20020729144443.53927.qmail@web20415.mail.yahoo.com> 
<20020729144652.73789.qmail@web20413.mail.yahoo.com> 
<sqbznwaxzoe.wl@nue.mac.com>



> 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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message