compile problem with arm-elf-gcc on cygwin.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux