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]
Other format: [Raw text]

RE: __gccmain error


Hi,
gcc uses more files like crt1.o/crtn.o etc... which gets added only if you
use gcc to link, and afaik its the recommended procedure.

Regards,



Hello,

I've built arm-elf-XXX tools and used to build a test file.
There the
message "test.o(.text+0x10): undefined reference to
`__gccmain'" is printed.
Pls. let me know how to overcome this and generate the executable?

not works a case:
arm-elf-gcc -S convolution.c
arm-elf-as -o convolution.o convolution.s
arm-elf-ld -o convolution.axf convolution.o
error message printed : undefined reference to '__gccmain'

works a case:
arm-elf-gcc -o convolution.o convolution.c
arm-elf-ld -o convolution.axf convolution.o

works a case:
arm-elf-gcc -Wall -g -o convolution.axf convolution.c

Thanks in advance.

--Jason C.


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