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 

MB_CUR_MAX link problem (with psp/include/stdlib.h)

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



Joined: 19 Jun 2005
Posts: 27

PostPosted: Sun Mar 19, 2006 12:51 pm    Post subject: MB_CUR_MAX link problem (with psp/include/stdlib.h) Reply with quote

I get the following a link error unless I change the following lines in psp/include/stdlib.h:

Code:

#if 0 /* this causes link error */
#define MB_CUR_MAX __mb_cur_max
#endif

#define MB_CUR_MAX                     1


What is the "proper" way to fix this?
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon Mar 20, 2006 6:12 am    Post subject: Reply with quote

In newlib that should be defined in libc/locale/locale.c, so either the newlib locale support is broken on PSP, or you might have a link order issue (try prefixing your libraries with -Wl,--start-group)
Back to top
View user's profile Send private message
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