libgcj/2737: User-defined thrown exception is not found
Tom Tromey
tromey@redhat.com
Wed Jun 20 15:09:00 GMT 2001
>>>>> "Jeff" == jddahl <jddahl@micron.com> writes:
Jeff> Maybe I'm approaching this wrong. Is it possible to create a
Jeff> class, compile down to a .o file and continue building .o's that
Jeff> inherit or import that .o, and continue in that fashion (much
Jeff> like building packages with javac) or do you skip the .o stage
Jeff> all together and go from many .java's to one compiled
Jeff> executable?
You can compile each .java file to a separate .o and then link, just
like you would with C.
You can also skip the .o step if you want, but I recommend against
doing that.
Jeff> I am running into problems after building my .o's and trying to
Jeff> compile them together, but not when I compile all .java's into
Jeff> one executable.
That isn't what you've reported. What you've reported is a problem
with compiling to .o which I believe arises due to an incorrect
specification of the class path.
Did you try the -I option I suggested?
Tom
More information about the Gcc-bugs
mailing list