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]
Other format: [Raw text]

gcj link


Hi, a basic question, what's mean of this sentence:

gcj --main=my -o mypgm.exe mypgm.o swt.so
NOTICE: swt is ".so"  but not ".a" or ".o". It means swt.so is a dynamic
link library( when compile swt.so, use -shared option)

My puzzle is, I only know the static link will look like:

gcj --main=my -o mypgm.exe mypgm.o swt.o
NOTICE: here, swt is ".o"

It means link swt.o and mypgm.o to mypgm.exe. But the former gcj command
seems link a dynamic library into a exe?!


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