Witam,
Mam problem z użyciem pod WinArm funkcji sprintf.
Gdy ją wywołam, to kompilator wywala błąd:
Co może być?? Spotkał już ktoś sę z takim błędem??
Pzdr.
A.
Mam problem z użyciem pod WinArm funkcji sprintf.
Gdy ją wywołam, to kompilator wywala błąd:
Linking: main.elf
arm-elf-gcc -mthumb -mcpu=arm7tdmi -mthumb-interwork -I. -gdwarf-2 -DROM_RUN -D__WinARM__ -Os -Wall -Wcast-align -Wimplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=Cstartup.lst -MD -MP -MF .dep/main.elf.d Cstartup.o Cstartup_SAM7.o main.o t6963c.o adc.o Board.o --output main.elf -nostartfiles -Wl,-Map=main.map,--cref -lc -lm -lc -lgcc -TAT91SAM7S64-ROM.ld
c:/WinARM/arm-elf/lib/thumb/interwork\libc.a(freer.o): In function `_malloc_trim_r':
mallocr.c:(.text+0x2c): undefined reference to `_sbrk_r'
mallocr.c:(.text+0x3c): undefined reference to `_sbrk_r'
mallocr.c:(.text+0x48): undefined reference to `_sbrk_r'
c:/WinARM/arm-elf/lib/thumb/interwork\libc.a(makebuf.o): In function `__smakebuf':
makebuf.c:(.text+0x1c): undefined reference to `_fstat_r'
makebuf.c:(.text+0xb2): undefined reference to `isatty'
c:/WinARM/arm-elf/lib/thumb/interwork\libc.a(mallocr.o): In function `_malloc_r':
mallocr.c:(.text+0x2e8): undefined reference to `_sbrk_r'
mallocr.c:(.text+0x388): undefined reference to `_sbrk_r'
c:/WinARM/arm-elf/lib/thumb/interwork\libc.a(stdio.o): In function `__sclose':
stdio.c:(.text+0xc): undefined reference to `_close_r'
c:/WinARM/arm-elf/lib/thumb/interwork\libc.a(stdio.o): In function `__sseek':
stdio.c:(.text+0x2a): undefined reference to `_lseek_r'
c:/WinARM/arm-elf/lib/thumb/interwork\libc.a(stdio.o): In function `__swrite':
stdio.c:(.text+0x6e): undefined reference to `_lseek_r'
stdio.c:(.text+0x86): undefined reference to `_write_r'
c:/WinARM/arm-elf/lib/thumb/interwork\libc.a(stdio.o): In function `__sread':
stdio.c:(.text+0xaa): undefined reference to `_read_r'
make.exe: *** [main.elf] Error 1
Co może być?? Spotkał już ktoś sę z takim błędem??
Pzdr.
A.