Program compiled with g++ doesn't work...

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

Moderators: cheriff, TyRaNiD

Post Reply
Hippo
Posts: 19
Joined: Sat Jun 25, 2005 10:51 am

Program compiled with g++ doesn't work...

Post by Hippo »

After screwing around with the Hello World example, I tried my hand at porting my raytracer over to the PSP. I got the to compile and link just fine, yadda yadda yadda, but it doesn't work with either PSPE or my PSP. Here's my batch file:
psp-g++ -fno-exceptions -o out -Wl,-q,-Ttext,8900000,-O0 -g -x c++ <list of files> -x assembler startup.s
outpatch
I'm using the most recent PSP toolkit, and the only code that the PSP (should) run is:
pgInit();
pgScreenFrame(2,0);
pgFillvram(0);

while(1){}
Er... any ideas? I get error 800200D9 when I run it on the PSP (1.5 firmware, transferred with KXploit Tool 0.3).
crazyc
Posts: 408
Joined: Fri Jun 17, 2005 10:13 am

Post by crazyc »

Try, instead of "-Ttext,8900000", "--section-start,.init=8900000".
Hippo
Posts: 19
Joined: Sat Jun 25, 2005 10:51 am

Post by Hippo »

That together with the tips in this thread got it to work. Thanks! :D
gettothechoppa
Posts: 1
Joined: Sun Jun 26, 2005 2:13 pm

Post by gettothechoppa »

what did you do to get it to work i am having the same problems
Post Reply