This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
ld link error under gcj on RedHat 9.0
- From: "Miguel" <mth at mth dot com>
- To: <java at gcc dot gnu dot org>
- Date: Wed, 21 May 2003 00:05:59 +0200 (CEST)
- Subject: ld link error under gcj on RedHat 9.0
In trying to compile/link my first .java program using gcj I am getting
the following error message:
[mth@hucho bm]$ gcj Rbm.java
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
If I separate compiling from linking I get the same
[mth@hucho bm]$ gcj -c -g -O Rbm.java
[mth@hucho bm]$ gcj --main=Rbm -o Rbm Rbm.o
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
[mth@hucho bm]$
I am running RedHat 9.0 and just installed (and reinstalled) from the
rpms. I got no complaints during the installation of the packages.
When I use gcc things compile and link fine.
I don't have any experience with ld.
Any help would be appreciated.
Thanks in advance,
Miguel