| View previous topic :: View next topic |
| Author |
Message |
Helius

Joined: 07 Nov 2006 Posts: 5 Location: Madrid, Spain
|
Posted: Tue Nov 07, 2006 6:21 pm Post subject: printf not working with PSPLink |
|
|
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 |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Tue Nov 07, 2006 8:01 pm Post subject: |
|
|
| use pspDebugScreenPrintf, it will be easier :) |
|
| Back to top |
|
 |
Helius

Joined: 07 Nov 2006 Posts: 5 Location: Madrid, Spain
|
Posted: Tue Nov 07, 2006 9:26 pm Post subject: |
|
|
What I need is a way to print to the pcterm console.
Y tried cout also and nothing happens :( |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Tue Nov 07, 2006 9:52 pm Post subject: |
|
|
| Try fprintf to stdout or stderr |
|
| Back to top |
|
 |
Helius

Joined: 07 Nov 2006 Posts: 5 Location: Madrid, Spain
|
Posted: Tue Nov 07, 2006 10:20 pm Post subject: |
|
|
fprintf to stderr do the trick.
Thanks!! |
|
| Back to top |
|
 |
johnmph
Joined: 23 Jul 2005 Posts: 119
|
Posted: Sat Nov 11, 2006 5:28 am Post subject: |
|
|
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 |
|
 |
Helius

Joined: 07 Nov 2006 Posts: 5 Location: Madrid, Spain
|
Posted: Sat Nov 11, 2006 7:14 am Post subject: |
|
|
| fprintf(stderr,... with -lstdc++ is working fine to me. |
|
| Back to top |
|
 |
|