Hi All
I have installed the above version of gcc from the SUN binaries and recieved the following linker error when trying to compile and link a hello world test program written in C++.
ld: fatal: option -z has illegal argument `ld32=-S/export/home/sources/gcc_SUN_b
inary/SUNW0scgfss/4.2.0/prod/lib/libld_annotate.so'
ld: fatal: option -z has illegal argument `ld64=-S/export/home/sources/gcc_SUN_b
inary/SUNW0scgfss/4.2.0/prod/lib/v9/libld_annotate.so'
Breaking the process down I can compile without errors. But linking generates errors.
Using the SUN linker I see
ld: fatal: file file_type_c.o: section .rela.annotate: relocations can not be
applied against section `.annotate'
and with the GNU liner from binutils 2.18 I see
/usr/local/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000010054
file_type_c.o: In function `main':
file_type_c.c
.text+0x8): undefined reference to `puts'
Can anyone give me some pointers as to the origins of the above errors.
Thanks
Ed