This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj link
- From: "Steve Ni" <list at boyi-online dot com>
- To: <java at gcc dot gnu dot org>
- Date: Mon, 7 Apr 2003 18:36:51 +0800
- Subject: 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?!