building SWT with more than one source file

Tom Tromey tromey@redhat.com
Tue Mar 25 16:47:00 GMT 2003


>>>>> "Andrew" == <Andrew.Ferguson@arm.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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /