public inbox for
 help / color / mirror / Atom feed
* 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

I am using RedHat 6.0, out of the box, and I installed gcc with
the following RPMs from


---> My BigInteger Hello World looks like this:

	import java.math.BigInteger;

	public class Hello {
	    public static void main(String[] args) {
		BigInteger test_integer = new BigInteger("1");

		System.out.println("Hello World!");

	When I compile it like this:
		gcj -c
		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/ undefined
reference to `_CL_Q34java4math10BigInteger'
/home/stephen/bin/src/Java/Mars_II/Mars_II_New/ undefined
reference to `java::math::BigInteger::BigInteger(java::lang::String *)'
collect2: ld returned 1 exit status

	Is there a way to fix this?


^ 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).