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 

Anyone of STLport working

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



Joined: 15 Sep 2005
Posts: 5

PostPosted: Thu Sep 15, 2005 11:16 am    Post subject: Anyone of STLport working Reply with quote

I'm trying to port an app that requires STL.
I've tried using the STL used by gcc and it barfs on me during link time because of the libstdc++.a is missing a bunch of stuff from libc.a

I'm currently trying to use STLport with no luck either.
Has anyone got any advice for me on how to get STL working?

Thanks for your time.

yulius
Back to top
View user's profile Send private message
yulius



Joined: 15 Sep 2005
Posts: 5

PostPosted: Sat Sep 17, 2005 3:48 am    Post subject: Reply with quote

Nevermind. I got it working. I had to add an implementation of mblen, mbcstowcs, wcstombcs, mbctowc, and wctombc. If anyone needs to help just PM me. Thanks.
Back to top
View user's profile Send private message
yulius



Joined: 15 Sep 2005
Posts: 5

PostPosted: Sun Sep 18, 2005 3:56 pm    Post subject: Reply with quote

ciddi3d asked me to post what i did to get stl working.
stlport is actually checked into the ps2dev subversion tree.

Code:

% cd /usr/local/ps2dev/ps2sdk/ports
% svn co svn://svn.ps2dev.org/ps2/trunk/ps2sdk-ports/stlport


I had to edit my Makefile to add the following

Code:

CFLAGS += -D_NOTHREADS -D_STLP_NO_EXCEPTIONS -D_STLP_USE_NEWALLOC -D_STLP_HAS_WCHAR_T -D_STLP_NO_IOSTREAMS -Dwint_t=int
INCLUDES = -I$(PS2SDK)/ports/stlport/stlport ....


If you don't need std::wstring support, you don't need _STLP_HAS_WCHAR_T. It was important for me to put the stlport include line in the front of all the includes.

After that, I had to implement multibye to wchar_t conversion functions. (wcstombs, etc...).

If anyone needs more detail let me know.
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 -> PS2 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