GNU link error with code sourcery
vika vika
vika238 at yahoo.com
Mon Jan 22 16:27:07 UTC 2007
Hi ,
I have done fo;owing steps to install codesourcery elf version
1) Installed in D:\CS
2) Path for D:\CS\bin got set automaticaly
3) My target processor is coldfire 5275
Tried to compile some source code with following options but got these linking errors
CF2_CC := m68k-coff-gcc -m5200 -gstabs -I$(All my source code include path)
$(All OBJS): %.o: ./path/%.c
$(CF2_CC) -c $(my header inclede paths) -Wa,-adhls=$*.ls -o $@ $<
gnutest.obj: $(MORE) linkfile.ld
$(CF2_CC) -m5200 -Tlinkfile.ld -nostartfiles -o $@ $(All OBJS)
makebuf.c:(.text+0xba): undefined reference to `isatty'
d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0x10): undefined reference to `sbrk'
d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(writer.o): In function `_write_r
':
writer.c:(.text+0x18): undefined reference to `write'
d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(fstatr.o): In function `_fstat_r
':
fstatr.c:(.text+0x14): undefined reference to `fstat'
d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(lseekr.o): In function `_lseek_r
':
lseekr.c:(.text+0x18): undefined reference to `lseek'
d:/cs/bin/../lib/gcc/m68k-elf/4.1.1/../../../../m68k-elf/lib\libc.a(readr.o): In function `_read_r':
readr.c:(.text+0x18): undefined reference to `read'
collect2: ld returned 1 exit status
cs-make: *** [gnutest.obj] Error 1
Please help me
Regards,
Vika
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20070122/6056e856/attachment.html>
More information about the coldfire-gnu-discuss
mailing list