* Compilation/ld problem
@ 2000-04-01 0:00 stephen
2000-04-01 0:00 ` Anthony Green
0 siblings, 1 reply; 2+ messages in thread
From: stephen @ 2000-04-01 0:00 UTC (permalink / raw)
To: java-discuss
Short version:
Compilation fails on a simple program that uses
BigIntegers.
I am using RedHat 6.0, out of the box, and I installed gcc with
the following RPMs from rufus.w3.org:
gcc-2.95.2-3.i386.rpm
gcc-java-2.95.2-3.i386.rpm
gcc-libgcj-2.95.2-3.i386.rpm
cpp-2.95.2-3.i386.rpm
binutils-2.9.5.0.22-4.i386.rpm
---> My BigInteger Hello World looks like this:
cut->--------
import java.math.BigInteger;
public class Hello {
public static void main(String[] args) {
BigInteger test_integer = new BigInteger("1");
System.out.println("Hello World!");
}
}
cut->--------
When I compile it like this:
gcj -c Hello.java
gcj --main=Hello -o Hello Hello.o
I get the following errors:
Hello.o: In function `Hello::main(JArray<java::lang::String *> *)':
/home/stephen/bin/src/Java/Mars_II/Mars_II_New/Hello.java:5: undefined
reference to `_CL_Q34java4math10BigInteger'
/home/stephen/bin/src/Java/Mars_II/Mars_II_New/Hello.java:5: undefined
reference to `java::math::BigInteger::BigInteger(java::lang::String *)'
collect2: ld returned 1 exit status
Is there a way to fix this?
Thanks,
Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compilation/ld problem
2000-04-01 0:00 Compilation/ld problem stephen
@ 2000-04-01 0:00 ` Anthony Green
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Green @ 2000-04-01 0:00 UTC (permalink / raw)
To: stephen.wooding; +Cc: java-discuss
Stephen wrote:
> Is there a way to fix this?
libgcj doesn't have a BigInteger implementation yet. However, it will
very soon - just watch the java-patches list.
AG
--
Anthony Green Red Hat
Sunnyvale, California
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-04-01 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-01 0:00 Compilation/ld problem stephen
2000-04-01 0:00 ` Anthony Green
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).