compile question about dll of windows

Jean-Francois Briere
Wed Apr 9 22:25:00 GMT 2003

The link mentioned below ( seems very promising BUT
has anyone succedeed to execute this command on Window$:
mingw32-gcj -shared -o libgcj.dll -Wl,--out-implib,libgcj.a -Wl,--export-all-symbols *.o
Where *.o refer to all the object files extracted from original libgcj.a

Either on the Window$ command line or with MSYS/MinGW, I get the usual "Invalid argument" error (this is usual when there are a lot of object files on the command line).

I also tried the linker directly:
ld -shared -o libgcj.dll --out-implib libgcj.a --export-all-symbols *.o
On MSYS/MinGW: the usual "Invalid argument" error...
On Window$ command line: the all-too-sweet-Micro$hit-one-of-too-many-funny-messagebox "Low in Virtuel Memory..." appears, then the command returns and then..... libgcj.a = 0 bytes libgcj.dll = 0 bytes! Wow! Thanks Micro$hit/Window$

I use Window$ XP Home SP1 on a Pentium 3 with 256 Mo.
Any workaround here?

Jean-Francois Briere

>> --- On Tue 04/08, Mohan Embar < > wrote:From: Mohan Embar [mailto:]To: >>, Cc: java@gcc.gnu.orgDate: Tue, 08 Apr 2003 01:17:53 -0500Subject: Re: >>compile question about dll of windowsLucian and Frank,

>>Frank>> Perhaps I'm late to the game, but I still thought that Java DLLs
>>Frank>> weren't working in Windows: you can create them via GCJ, but you
>>Frank>> can't actually use them in applications.
>>Lucian> The most difficult thing was getting the headers right and seting the right export symbols 
>>Lucian> from dll. Then in most cases I had to load dlls at run time (i.e. LoadLibrary(..)) and get...
>>Does this thread help?:
>>-- Mohan

No banners. No pop-ups. No kidding.
Introducing My Way -

More information about the Java mailing list