ARM GCC Compiling errors (Windows 7) -
here entered command , spits out: unfortunately, google has not been of help, have tried several things (from extremely beginner knowledge) , have not been able solve it.
c:\users\z\workspace\test\src>gcc main.c c:/program files (x86)/gnu tools arm embedded/4.7 2013q1/bin/../lib/gcc/arm-none -eabi/4.7.3/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit': exit.c:(.text.exit+0x2c): undefined reference `_exit' c:/program files (x86)/gnu tools arm embedded/4.7 2013q1/bin/../lib/gcc/arm-none -eabi/4.7.3/../../../../arm-none-eabi/lib\libc.a(lib_a-sbrkr.o): in function `_sbrk_r': sbrkr.c:(.text._sbrk_r+0x18): undefined reference `_sbrk' c:/program files (x86)/gnu tools arm embedded/4.7 2013q1/bin/../lib/gcc/arm-none -eabi/4.7.3/../../../../arm-none-eabi/lib\libc.a(lib_a-writer.o): in function `_write_r': writer.c:(.text._write_r+0x20): undefined reference `_write' c:/program files (x86)/gnu tools arm embedded/4.7 2013q1/bin/../lib/gcc/arm-none -eabi/4.7.3/../../../../arm-none-eabi/lib\libc.a(lib_a-closer.o): in function `_close_r': closer.c:(.text._close_r+0x18): undefined reference `_close' c:/program files (x86)/gnu tools arm embedded/4.7 2013q1/bin/../lib/gcc/arm-none -eabi/4.7.3/../../../../arm-none-eabi/lib\libc.a(lib_a-fstatr.o): in function `_fstat_r': fstatr.c:(.text._fstat_r+0x1c): undefined reference `_fstat' c:/program files (x86)/gnu tools arm embedded/4.7 2013q1/bin/../lib/gcc/arm-none -eabi/4.7.3/../../../../arm-none-eabi/lib\libc.a(lib_a-isattyr.o): in function ` _isatty_r': isattyr.c:(.text._isatty_r+0x18): undefined reference `_isatty' c:/program files (x86)/gnu tools arm embedded/4.7 2013q1/bin/../lib/gcc/arm-none -eabi/4.7.3/../../../../arm-none-eabi/lib\libc.a(lib_a-lseekr.o): in function `_lseek_r': lseekr.c:(.text._lseek_r+0x20): undefined reference `_lseek' c:/program files (x86)/gnu tools arm embedded/4.7 2013q1/bin/../lib/gcc/arm-none -eabi/4.7.3/../../../../arm-none-eabi/lib\libc.a(lib_a-readr.o): in function `_read_r': readr.c:(.text._read_r+0x20): undefined reference `_read' collect2.exe: error: ld returned 1 exit status
main.c contains following:
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { puts("!!!hello world!!!"); /* prints !!!hello world!!! */ return exit_success; }
gcc -v
returns version info path right
are developing arm7 or arm9 or arm9 running linux? need different tool chains each of these.
seems developing arm7 (looking @ compiler executable name), if not, might using wrong compiler.
the problem seems have not setup compiler toolchain properly, needs proper installation proper paths set.
i have instructions setting arm yagarto (a particular distribution arm-gcc) here: (http://www.electronicsfaq.com/2012/11/blinky-and-printf-on-netduino-using.html)
i use netduino board has arm7 on it.
Comments
Post a Comment