* __gccmain error
@ 2004-10-25 6:51 dscho
0 siblings, 0 replies; 3+ messages in thread
From: dscho @ 2004-10-25 6:51 UTC (permalink / raw)
To: gcc-help
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: __gccmain error
@ 2004-10-26 1:12 Muthukumar Ratty
0 siblings, 0 replies; 3+ messages in thread
From: Muthukumar Ratty @ 2004-10-26 1:12 UTC (permalink / raw)
To: gcc-help
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* __gccmain error
@ 2004-10-25 6:46 dscho
0 siblings, 0 replies; 3+ messages in thread
From: dscho @ 2004-10-25 6:46 UTC (permalink / raw)
To: gcc-help
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-26 1:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-25 6:51 __gccmain error dscho
-- strict thread matches above, loose matches on Subject: below --
2004-10-26 1:12 Muthukumar Ratty
2004-10-25 6:46 dscho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).