This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCJ and dynamic linking




On Mon, 17 Sep 2001, Dachuan Yu wrote:
> Does GCJ support dynamic linking?

On targets that support shared libraries, such as GNU/Linux, yes.

Use the `-shared' flag to create a shared library (just as you would for
the C/C++ compiler), e.g.

gcj -shared -fPIC Example.java -o Example.so
gcj Main.java Example.so --main=Main

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]