Dear Managers,
Apparently the Java support in gcc-2.95 is either broken or
not very good, at least for T64U. I received two quite different
replies (each followed up with additional information, THANKS!):
Thomas Leitner <tom_at_radar.tu-graz.ac.at>
AlBert DeKnuydt <Bert.Deknuydt_at_esat.kuleuven.ac.be>
Tom considers didn't consider GNU java mature enough for
development and suggested "jikes":
http://www.research.ibm.com/jikes/
(and of course www.digital.com/java has the Compaq versions of the
JDK, which I already have).
Bert suggested the following change to the command line I put
in my original post:
gcj -o pp1 pp1.java --main=pp1
(and also indicated that he couldn't compile libgcj-2.95 for T64U;
this command came off a Linux box). That command gave me a lot of
errors that sure look like assembler errors. Use of the -v option
confirms this. The assembler is shown to be the native "as" (I don't
even have gas, the GNU assembler, installed.).
I've decided to delete gcj and libgcj entirely. I may try
looking at jikes if I get a chance.
Original post
-------- ----
Dear Managers,
I'm trying to get the multi-language support in gcc-2.95 working
on our v4.0Dp4 systems. The documentation for languages other than C
and C++ seems to be virtually non-existent. An ls /usr/local/bin/g*
command and some intuition told me that g77 is the Fortran command and
gcj is the Java command (CHILL and Objective-C are irrelevant to me).
g77 seems to work OK, at least on my tiny test program. I can't get
gcj to work. Another guess turned up the separate libgcj-2.95.tar.gz
program on the Cygnus site, but even after installing the library I
get this:
$ gcj pp1.java
/usr/bin/ld:
Unresolved:
main
collect2: ld returned 1 exit status
Here's pp1.java:
class pp1 {
public static void main(String argv[]) {
System.out.println("Hello, world");
}
}
I apologize for the repeated GNU questions, but our news feed is
history, installation of compilers is a system management issue, and I
have no clue whether this is a T64U problem or not.
Any suggestions?
Larry
============================================================================
Larry Griffith Dept. of Computer & Info Science
larry_at_cs.wsc.ma.edu Westfield State College
(413) 572-5294 Westfield, MA 01086 USA
PGP public key available at:
http://cs.wsc.ma.edu/dcis/griffith.html
============================================================================
Received on Tue Aug 17 1999 - 21:10:09 NZST