Posted on:
|
hi, When i tried to build my project an error occurs "C:\Eclipseworkspace\test2/startup.s:89: multiple definition of `_start'", i can't solve this error. Any suggestion? Thank you in advance, and i apologize my english isn't great. Best regards. Mini My error : " **** Build of configuration Default for project test2 **** make all -------- begin -------- arm-none-eabi-gcc (GCC) 4.6.2 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. arm-none-eabi-gcc -g -Os -std=gnu89 -TSTR91x-ROM.ld -I . -I ./STCode -I ../../Common/drivers/ST/STR91xFWLib/v2.0/inc -D STR91X_GCC -mcpu=arm966e-s startup.s C:\DOCUME~1\ACM\LOCALS~1\Temp\cc8JRMv2.o: In function `_start': C:\Eclipseworkspace\test2/startup.s:89: multiple definition of `_start' c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-ea bi/lib/crt0.o:C:\msys\1.0\home\yagarto\newlib-build\arm-none-eabi\libglo ss\arm/../../../../newlib-1.19.0/libgloss/arm/crt0.S:83: first defined here C:\DOCUME~1\ACM\LOCALS~1\Temp\cc8JRMv2.o: In function `skip_initialise': C:\Eclipseworkspace\test2/startup.s:205: undefined reference to `main' c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-ea bi/lib/crt0.o: In function `start': (.text+0xe0): undefined reference to `main' c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-ea bi/lib\libg.a(lib_a-exit.o): In function `exit': C:\msys\1.0\home\yagarto\newlib-build\arm-none-eabi\newlib\libc\stdlib/. ./../../../../newlib-1.19.0/newlib/libc/stdlib/exit.c:65: undefined reference to `_exit' collect2: ld returned 1 exit status make: *** [test2.axf] Error 1 "
Posted on:
|
You are using your own startup-code which conflicts with the default startup-code, check the -nostartfiles option in the GNU manuals or search for example makefiles from which you could copy the options into the Eclipse dialogs.