Hi,
I wrote a c program to read arrays from a txt file and then do a insertion
sort. It runs OK while compiling in gcc. However, I need to convert it to
elf file by using 'avr-gcc -o filename.elf -mmcu=atmega128 filename.c'
command. And then things happened as following:
address@hidden:~$ avr-gcc -o fget.elf -mmcu=atmega128 fget.c
fget.c: In function 'convert':
fget.c:29: warning: assignment makes pointer from integer without a cast
fget.c:36: warning: assignment makes pointer from integer without a cast
fget.c: In function 'main':
fget.c:73: warning: initialization makes pointer from integer without a cast
/tmp/ccWExtSv.o: In function `convert':
fget.c:(.text+0x124): undefined reference to `strtok'
fget.c:(.text+0x170): undefined reference to `strtok'
/tmp/ccWExtSv.o: In function `main':
fget.c:(.text+0x31c): undefined reference to `fopen'