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 

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

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



Joined: 25 Jun 2005
Posts: 19

PostPosted: Sat Jun 25, 2005 11:08 am    Post subject: Program compiled with g++ doesn't work... Reply with quote

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:

Quote:
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:

Quote:
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).
Back to top
View user's profile Send private message
crazyc



Joined: 17 Jun 2005
Posts: 410

PostPosted: Sat Jun 25, 2005 11:40 am    Post subject: Reply with quote

Try, instead of "-Ttext,8900000", "--section-start,.init=8900000".
Back to top
View user's profile Send private message
Hippo



Joined: 25 Jun 2005
Posts: 19

PostPosted: Sat Jun 25, 2005 3:57 pm    Post subject: Reply with quote

That together with the tips in this thread got it to work. Thanks! :D
Back to top
View user's profile Send private message
gettothechoppa



Joined: 26 Jun 2005
Posts: 1

PostPosted: Mon Jun 27, 2005 4:27 am    Post subject: Reply with quote

what did you do to get it to work i am having the same problems
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