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]

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



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