This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problem compiling DLL
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.