| View previous topic :: View next topic |
| Author |
Message |
TommyBear
Joined: 24 Jun 2005 Posts: 50
|
Posted: Mon Jun 27, 2005 2:00 am Post subject: C/C++ clashes using lastest PSP toolchain |
|
|
Hi Guys,
I'm getting this:
| Code: |
actor.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
|
trying to compile a .cpp file. Now my compiler flags are:
$(CC) $(OBJS) -lm -lc -nostartfiles -o out
__gxx_personality_v0 is implemented in libstdc++, but if I include that using
$(CC) $(OBJS) -lm -lc -lstdc++ -nostartfiles -o out
I get:
| Code: |
/usr/local/pspdev/lib/gcc/psp/4.0.0/../../../../psp/lib/libstdc++.a(del_op.o): In function `operator delete(void*)':
../../../../libstdc++-v3/libsupc++/del_op.cc:49: undefined reference to `free'
/usr/local/pspdev/lib/gcc/psp/4.0.0/libgcc.a(unwind-dw2-fde.o): In function `__register_frame':
../../gcc/unwind-dw2-fde.c:119: undefined reference to `malloc'
/usr/local/pspdev/lib/gcc/psp/4.0.0/libgcc.a(unwind-dw2-fde.o): In function `__register_frame_table':
../../gcc/unwind-dw2-fde.c:157: undefined reference to `malloc'
/usr/local/pspdev/lib/gcc/psp/4.0.0/libgcc.a(unwind-dw2-fde.o): In function `__deregister_frame_info_bases':
../../gcc/unwind-dw2-fde.c:201: undefined reference to `free'
/usr/local/pspdev/lib/gcc/psp/4.0.0/libgcc.a(unwind-dw2-fde.o): In function `__deregister_frame':
../../gcc/unwind-dw2-fde.c:234: undefined reference to `free'
/usr/local/pspdev/lib/gcc/psp/4.0.0/libgcc.a(unwind-dw2-fde.o): In function `start_fde_sort':
../../gcc/unwind-dw2-fde.c:402: undefined reference to `malloc'
../../gcc/unwind-dw2-fde.c:405: undefined reference to `malloc'
/usr/local/pspdev/lib/gcc/psp/4.0.0/libgcc.a(unwind-dw2-fde.o): In function `end_fde_sort':
../../gcc/unwind-dw2-fde.c:586: undefined reference to `free'
collect2: ld returned 1 exit status
|
Malloc and friends are implemented in libc, so what gives..... anyone? :( |
|
| Back to top |
|
 |
inomine
Joined: 05 May 2005 Posts: 53
|
Posted: Mon Jun 27, 2005 2:07 am Post subject: Re: C/C++ clashes using lastest PSP toolchain |
|
|
| TommyBear wrote: |
Malloc and friends are implemented in libc, so what gives..... anyone? :( |
They are implemented in libc for specific architectures. Afaik the libc malloc does not work on the PSP, you will either have to write your own or wait for the PSP SDK to be released if you don't want to do that. |
|
| Back to top |
|
 |
TommyBear
Joined: 24 Jun 2005 Posts: 50
|
Posted: Mon Jun 27, 2005 12:20 pm Post subject: Re: C/C++ clashes using lastest PSP toolchain |
|
|
| inomine wrote: | | TommyBear wrote: |
Malloc and friends are implemented in libc, so what gives..... anyone? :( |
They are implemented in libc for specific architectures. Afaik the libc malloc does not work on the PSP, you will either have to write your own or wait for the PSP SDK to be released if you don't want to do that. |
Yep that's ok someone has already written these which is nice! :) Thanks everyone. |
|
| Back to top |
|
 |
|