public inbox for
 help / color / mirror / Atom feed
From: <>
Subject: Compilation/ld problem
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <> (raw)

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?


             reply	other threads:[~2000-04-01  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-01  0:00 stephen [this message]
2000-04-01  0:00 ` Anthony Green

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).