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 

How to reinstall libstdc++

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



Joined: 20 Oct 2008
Posts: 355

PostPosted: Mon Aug 10, 2009 9:29 am    Post subject: How to reinstall libstdc++ Reply with quote

i would like to reinstall libstdc++ because i had a problem with compiling when i included alogrithm it said rand() is not a member of std:: when i wasn't even using the function but it was defined so i changed it to use another function based on the random function right below it. i believe this error was on line 4538.

that being said how can i reinstall libstdc++ so that i can see if it will correct itself after reinstallation

ps: this was in c++/4.3.3/bits.../stl_algo.h
Back to top
View user's profile Send private message MSN Messenger
Mon Ouïe



Joined: 05 Jul 2009
Posts: 36

PostPosted: Mon Aug 10, 2009 7:12 pm    Post subject: Reply with quote

Juste recompile gcc, but I don't think it'll solve your problem. Are you sure your code and your makefile are both corrects ?
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Mon Aug 10, 2009 8:43 pm    Post subject: Reply with quote

Are you sure you included

Code:
#include <cstdlib>


and NOT

Code:
#include <stdlib.h>

_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Mon Aug 10, 2009 11:27 pm    Post subject: Reply with quote

i'm sure because it compiled before then i reinstalled ubuntu and just copied a pspsdk i had compiled a while ago and it didn't work so how can i recompile gcc
Back to top
View user's profile Send private message MSN Messenger
Mon Ouïe



Joined: 05 Jul 2009
Posts: 36

PostPosted: Mon Aug 10, 2009 11:36 pm    Post subject: Reply with quote

Well... Exactly as when you compiled it, probably with the psptoolchain script.
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