This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compile problem with arm-elf-gcc on cygwin.
- From: Ryle_Liu at dlink dot com dot cn
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 11 Jul 2003 14:45:37 +0800
- Subject: compile problem with arm-elf-gcc on cygwin.
Hello all,
I write a hello.c program and compile it use arm-elf-gcc which provided by
ecoscentric, but appear link error:
$ cat tt.c
main(){}
$ arm-elf-gcc tt.c
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld:
cannot find -lc
collect2: ld returned 1 exit status
What's wrong of it? and what i need to config this environment?
If i write a assemble file and a C file which use main function, how should
i compile and link it? my main purpose is to use C runtime library (__main
init function and memcopy function etc.).
a.s: ... b __main
b.c: main(){ memcopy(...);}
Thanks for your help.
Yours sincerely,
Ryle Liu