native cross dll compile

Christian Stuellenberg gcj@stuellenberg.de
Thu Sep 11 14:32:00 GMT 2003


>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:

    Anthony> I believe this is because it's linking libgcj.a
    Anthony> statically into your dll.  Try creating a libgcj.dll
    Anthony> first and then creating your dll.  See
    Anthony> http://gcc.gnu.org/ml/java/2002-12/msg00287.html

You've posted:
    msg00287> $ i686-pc-mingw32-gcj -shared -o libgcj.dll
    msg00287> -Wl,--out-implib,libgcj.a -Wl,--export-all-symbols
    msg00287> [all-object-files-here]

What exact are "all the object files"?
Are that only the objects that are stored in the file
<gcc-build>/<target>/libjava/libgcj.objectlist
or also some other?

    Anthony> BTW, how is the i386-mingw32msvc target different from
    Anthony> i386-mingw32 ?

I have extracted all a few options from
http://www.libsdl.org/extras/win32/cross/build-cross.sh

So I also used this msvc suffix because it was there, but I only use
win32api-2.3 and mingw-runtime-3.0 (so I assume nothing special).

Regards,
Christian



More information about the Java mailing list