------- Comment #2 from pinskia at gcc dot gnu dot org  2006-12-26 13:08 -------
No, compiling .java should work with the gcc driver and if it does not, then
there is a bug there.  And we should not error out.

Also the ICE is a bug which needs to fixed seperately from the "driver" issue
anyways.

The result without the ICE is not confusing at all:

Without ICE the result would be still confusing at least to most
C/C++/Fortran/Ada programmers :):
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/../../../../lib64/crt1.o: In function
`_start':
(.text+0x20): undefined reference to `main'

that means you did not include a main function.

hello.java:(.text+0x12): undefined reference to `_Jv_InitClass'
that means you did not include the library libgcj.  These are all normal common
problems for beginner programmers.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30292

Reply via email to