forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C/C++ clashes using lastest PSP toolchain

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
TommyBear



Joined: 24 Jun 2005
Posts: 50

PostPosted: Mon Jun 27, 2005 2:00 am    Post subject: C/C++ clashes using lastest PSP toolchain Reply with quote

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
View user's profile Send private message Send e-mail
inomine



Joined: 05 May 2005
Posts: 53

PostPosted: Mon Jun 27, 2005 2:07 am    Post subject: Re: C/C++ clashes using lastest PSP toolchain Reply with quote

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
View user's profile Send private message
TommyBear



Joined: 24 Jun 2005
Posts: 50

PostPosted: Mon Jun 27, 2005 12:20 pm    Post subject: Re: C/C++ clashes using lastest PSP toolchain Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group