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

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Sharkus
Posts: 27
Joined: Sun Jun 19, 2005 6:49 am

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

Post by Sharkus »

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

Code: Select all

#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?
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

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)
Post Reply