This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libgcj/2737: User-defined thrown exception is not found
- To: jddahl <jddahl at micron dot com>
- Subject: Re: libgcj/2737: User-defined thrown exception is not found
- From: Tom Tromey <tromey at redhat dot com>
- Date: 20 Jun 2001 16:26:05 -0600
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, java-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- References: <3607D767B8E1D311A24F0008C7590A960717384D@ntexchange07.micron.com>
- Reply-To: tromey at redhat dot com
>>>>> "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