This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: building SWT with more than one source file


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]