Problem compiling DLL
Andrew Haley
aph-gcc@littlepinkcloud.COM
Wed Sep 5 09:58:00 GMT 2007
Daniel Adolfsson writes:
> When I compile, for example, a HelloWorld class using a DLL version of
> libgcj, I'm using:
>
> gcj -o HelloWorld.exe --main=HelloWorld HelloWorld.java -findirect-dispatch
>
> To compile a DLL I type:
> gcj -shared -o Test.dll -Wl,--out-implib,libtest.a Test.java
>
> Also, If I want to compile an HelloWorld that makes use of this class,
> this doesn't work however. Nor does adding -findirect-dispatch work.
> gcj -o HelloWorld.exe --main=HelloWorld --classpath=. -L. -ltest Test.java
Tell us more. Show us what happens.
Andrew.
More information about the Java
mailing list