This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: building SWT with more than one source file
- From: Tom Tromey <tromey at redhat dot com>
- To: <Andrew dot Ferguson at arm dot com>
- Cc: "GCJ Java" <java at gcc dot gnu dot org>
- Date: 25 Mar 2003 09:44:23 -0700
- Subject: Re: building SWT with more than one source file
- References: <OFEAA43BA2.60C653F7-ON80256CF4.005A55BD@cambridge.arm.com>
- Reply-to: tromey at redhat dot com
>>>>> "Andrew" == <Andrew dot Ferguson at arm dot com> writes:
Andrew> gcj --main=SWTTest --classpath=%SWT_JAVA_LIB_DIR%\swt.jar;. -o SWTTest.exe
Andrew> -L%SWT_GCJ_LIB_DIR% -lswt SWTTest.java Other.java
Andrew> is this the correct way to be including multiple source files?
It's more typical to compile each .java file to a .o and then link
them together.
gcj -c foo.java
gcj -c bar.java
gcj --main=.. .... -lswt
Tom