This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Link problem with gcj (not with gcc)
- To: gcc-help at gcc dot gnu dot org
- Subject: Link problem with gcj (not with gcc)
- From: "b.d. vrijkorte" <bd dot vrijkorte at signaal dot nl>
- Date: Fri, 20 Aug 1999 10:47:15 +0200
- Organization: Hollandse Signaalapparaten b.v.
Hello,
when I compile a 'Hello world' java-program using gcj I get an ld error
(see below).
I have installed:
- gcc 2.95.1
- binutils 2.9.1.0.25
- libstdc++-2.90.6
- libgcj-2.95
A 'Hello world' program using gcc compiles and works correctly.
Who can tell me what's wrong?
------------------------------------------
Input/Output
------------------------------------------
> gcj test.java
> /{my_gcc_dir}/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/crt1.o: In function `_start':
> /{my_gcc_dir}/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/crt1.o(.text+0x5c): undefined reference to `main'
> collect2: ld returned 1 exit status
------------------------------------------
Thanks in advance,
Bjorn Vrijkorte
---------------------------
Bjorn Vrijkorte
Hollandse Signaalapparaten
--- Unclassified E-mail ---