building SWT with more than one source file

Tom Tromey
Tue Mar 25 16:47:00 GMT 2003

>>>>> "Andrew" ==   <> writes:

Andrew> gcj --main=SWTTest --classpath=%SWT_JAVA_LIB_DIR%\swt.jar;. -o SWTTest.exe
Andrew> -L%SWT_GCJ_LIB_DIR% -lswt

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
gcj -c
gcj --main=.. .... -lswt


More information about the Java mailing list