This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Link problem with gcj (not with gcc)


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 ---


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]