Link problem with gcj
b.d. vrijkorte
bd.vrijkorte@signaal.nl
Fri Aug 20 06:47:00 GMT 1999
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 ---
More information about the Java
mailing list