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 

printf not working with PSPLink

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



Joined: 07 Nov 2006
Posts: 5
Location: Madrid, Spain

PostPosted: Tue Nov 07, 2006 6:21 pm    Post subject: printf not working with PSPLink Reply with quote

Hi!

I am new to PSP but not new to programming. I managed to get the PSPSDK integrated with Visual Studio and now I'm trying with PSPLink.

All works nice, I can run my game from pcterm but nothing is printed in the window (there are lots of printfs in the game).

I also checked if "printf" was already defined but no luck. I think I'm correctly using printf from stdio.h but nothing is printed at all.

Any ideas?? Thanks.
Back to top
View user's profile Send private message Visit poster's website
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Tue Nov 07, 2006 8:01 pm    Post subject: Reply with quote

use pspDebugScreenPrintf, it will be easier :)
Back to top
View user's profile Send private message
Helius



Joined: 07 Nov 2006
Posts: 5
Location: Madrid, Spain

PostPosted: Tue Nov 07, 2006 9:26 pm    Post subject: Reply with quote

What I need is a way to print to the pcterm console.

Y tried cout also and nothing happens :(
Back to top
View user's profile Send private message Visit poster's website
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Tue Nov 07, 2006 9:52 pm    Post subject: Reply with quote

Try fprintf to stdout or stderr
Back to top
View user's profile Send private message
Helius



Joined: 07 Nov 2006
Posts: 5
Location: Madrid, Spain

PostPosted: Tue Nov 07, 2006 10:20 pm    Post subject: Reply with quote

fprintf to stderr do the trick.

Thanks!!
Back to top
View user's profile Send private message Visit poster's website
johnmph



Joined: 23 Jul 2005
Posts: 119

PostPosted: Sat Nov 11, 2006 5:28 am    Post subject: Reply with quote

printf or fprintf(stderr,... doesn't work when the project is compiled with -lstdc++, they print on the PSP screen like normal printf (because c++ redefines standard functions ?).

How print to pcterm console with lstdc++ linked ?
Back to top
View user's profile Send private message
Helius



Joined: 07 Nov 2006
Posts: 5
Location: Madrid, Spain

PostPosted: Sat Nov 11, 2006 7:14 am    Post subject: Reply with quote

fprintf(stderr,... with -lstdc++ is working fine to me.
Back to top
View user's profile Send private message Visit poster's website
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