Guest
#1171083
Hi, I am using WinARM-20060117-1 with gcc 4.0.2. I successfuly compiled my first program written in pure C. After then I started to port my funtions into object oriented style using C++. However after several compile and fix loops it seems that I stuck into a linker problem on low level functions: c:/winarm/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/lib\libg.a(ma llocr.o): In function `_malloc_r':mallocr.c:(.text+0x430): undefined reference to `_sbrk_r' :mallocr.c:(.text+0x5ec): undefined reference to `_sbrk_r' c:/winarm/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/lib\libg.a(fr eer.o): In function `_malloc_trim_r':mallocr.c:(.text+0x48): undefined reference to `_sbrk_r' :mallocr.c:(.text+0x70): undefined reference to `_sbrk_r' :mallocr.c:(.text+0xb4): undefined reference to `_sbrk_r' c:/winarm/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/lib\libg.a(ma kebuf.o): In function `__smakebuf':makebuf.c:(.text+0x44): undefined reference to `_fstat_r' :makebuf.c:(.text+0xe4): undefined reference to `isatty' c:/winarm/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/lib\libg.a(st dio.o): In function `__sread':stdio.c:(.text+0x1c): undefined reference to `_read_r' c:/winarm/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/lib\libg.a(st dio.o): In function `__swrite':stdio.c:(.text+0x78): undefined reference to `_lseek_r' :stdio.c:(.text+0x9c): undefined reference to `_write_r' c:/winarm/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/lib\libg.a(st dio.o): In function `__sseek':stdio.c:(.text+0xc0): undefined reference to `_lseek_r' c:/winarm/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/lib\libg.a(st dio.o): In function `__sclose':stdio.c:(.text+0xf8): undefined reference to `_close_r' make.exe: *** [main.elf] Error 1 Is this specific to C++? Isn't WinARM intended to be used with C++? How can I solve this problem? Thanks alot Regards Cem Eryasar