This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

undefined reference to `_start', undefined reference to `_data'

Hi, I'm trying to compile a project using Keil and GNUARM. Compiler compiles .c file but linker writes:

Build target 'Target 1'
assembling Startup.s...
compiling Serial.c...
compiling Blinky.c...
linking...
/cygdrive/c/Program Files/GNUARM/Bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 00008000
startup.o: In function 'LoopZI':
/cygdrive/c/Projekty/Apos/FreeRTOS/Free RTOS/Startup.s(400): error: undefined reference to '_start'
/cygdrive/c/Projekty/Apos/FreeRTOS/Free RTOS/Startup.s(400): error: undefined reference to '_data'
collect2: ld returned 1 exit status
Target not created

I've just installed bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4.exe and in KEIL "Components, Environment and Books"->"Folders/Extensions" I Checked "Use GNU Compiler", wrote "arm-elf-" into "GNU-Tool-Prefix" and "C:\Program Files\GNUARM\" into "Cygnus Folder". Then I createn a new project for Philips LPC2129 and copied and includfed .c files from example Blinky into the project.

What can be wrong???

Thank You and happy easter.

Mirek Fiala