How to reinstall libstdc++

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

Moderators: cheriff, TyRaNiD

Post Reply
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

How to reinstall libstdc++

Post by coolkehon »

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
Mon Ouïe
Posts: 36
Joined: Sun Jul 05, 2009 10:22 pm

Post by Mon Ouïe »

Juste recompile gcc, but I don't think it'll solve your problem. Are you sure your code and your makefile are both corrects ?
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

Are you sure you included

Code: Select all

#include <cstdlib>
and NOT

Code: Select all

#include <stdlib.h>

Code: Select all

int main&#40;&#41;&#123;
     SetupCallbacks&#40;&#41;;
     makeNiceGame&#40;&#41;;
     sceKernelExitGame&#40;&#41;;
&#125;
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

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
Mon Ouïe
Posts: 36
Joined: Sun Jul 05, 2009 10:22 pm

Post by Mon Ouïe »

Well... Exactly as when you compiled it, probably with the psptoolchain script.
Post Reply