EmbeddedRelated.com
Forums

AT91SAM7x program - compiler error

Started by tasbihmr November 15, 2008
Hello,

Several times before also, when I was preparing some programs which
are based on the software examples for AT91SAM7x, I used to get
following error:

arm-elf-gcc -g -nostartfiles -Wl,--gc-sections
-T"../at91lib/boards/at91sam7x-ek/at91sam7x512/flash.lds" -o bin/templat
e-project-at91sam7x-ek-at91sam7x512-flash.elf
obj/flash_board_cstartup.o obj/flash_main.o obj/flash_stdio.o obj/flash_db
gu.o obj/flash_pio.o obj/flash_board_memories.o obj/flash_board_lowlevel.o
c:/program
files/yagarto/bin/../lib/gcc/arm-elf/4.2.2/../../../../arm-elf/lib\libg.a(lib_a-impure.o):(.data+0x0):
multip
le definition of `_impure_ptr'
obj/flash_stdio.o:(.data+0x400): first defined here
collect2: ld returned 1 exit status
make.exe: *** [flash] Error 1

I am again getting this error, and I just can't figure out what could
be the priciple source of this error. What is the cause of this error?

Maziar