This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: libgcj/2737: User-defined thrown exception is not found


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


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