native cross dll compile
Christian Stuellenberg
gcj@stuellenberg.de
Thu Sep 11 18:23:00 GMT 2003
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> Yes, I believe so (libgcj.objectlist didn't exist when I
Anthony> wrote these instructions).
Ok, done. libgcj.dll seems to have compiled successfully, but:
I've placed the generated libgcj.dll and libgcj.dll.a to
$PREFIX/mingw32/lib (is that correct btw?)
and tried to compile and simple HelloWorld with against the libgcj.dll
but it gives me the following error:
$ mingw32-gcj --main=HelloWorld -o hello HelloWorld.java
Info: resolving __Jv_Compiler_Properties by linking to __imp___Jv_Compiler_Properties (auto-import)
Info: resolving __ZTVN4java4lang5ClassE by linking to __imp___ZTVN4java4lang5ClassE (auto-import)
/tmp/ccS4OZb1.o(.data+0x80): In function `GLOBAL__I__ZN10HelloWorld6class$E':
<path>/HelloWorld.java: variable 'vtable for java::lang::Class' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
Info: resolving __ZN4java4lang6Object6class$E by linking to __imp___ZN4java4lang6Object6class$E (auto-import)
What have I done wrong here? If I use -Wl,--disable-auto-import it
gives me even more unsatisfied reference errors.
Regards,
Christian
More information about the Java
mailing list