This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj link
- From: Andrew Haley <aph at redhat dot com>
- To: "Steve Ni" <list at boyi-online dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: Mon, 7 Apr 2003 11:57:08 +0100 (BST)
- Subject: gcj link
- References: <002701c2fcf1$ae51f5c0$5623030a@d2lv11x>
Steve Ni writes:
> 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)
Name your shared object file libswt.so. Then link with
gcj --main=my -o mypgm.exe mypgm.o -L. -lswt
Andrew.