Discuss the development of new homebrew software, tools and libraries.
	Moderators:  cheriff , TyRaNiD 
			
		
		
			
				
								Helius 							 
									
		Posts:  5  		Joined:  Tue Nov 07, 2006 6:03 pm 		
		
											Location:  Madrid, Spain 
												
							
				Contact: 
				
			 
				
		 
		
						
					
													
							
						
									
						Post 
					 
								by Helius   »  Tue Nov 07, 2006 6:21 pm 
			
			
			
			
			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.
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								adrahil 							 
									
		Posts:  274  		Joined:  Thu Mar 16, 2006 1:55 am 		
		
						
						
		 
		
						
					
						 
		 
													
							
						
									
						Post 
					 
								by adrahil   »  Tue Nov 07, 2006 8:01 pm 
			
			
			
			
			use pspDebugScreenPrintf, it will be easier :)
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
								Helius 							 
									
		Posts:  5  		Joined:  Tue Nov 07, 2006 6:03 pm 		
		
											Location:  Madrid, Spain 
												
							
				Contact: 
				
			 
				
		 
		
						
					
						 
		 
													
							
						
									
						Post 
					 
								by Helius   »  Tue Nov 07, 2006 9:26 pm 
			
			
			
			
			What I need is a way to print to the pcterm console. 
 
Y tried cout also and nothing happens :(
			
			
									
									
						 
		 
				
		
		 
	 
				
				
		
		
			
				
								Helius 							 
									
		Posts:  5  		Joined:  Tue Nov 07, 2006 6:03 pm 		
		
											Location:  Madrid, Spain 
												
							
				Contact: 
				
			 
				
		 
		
						
					
						 
		 
													
							
						
									
						Post 
					 
								by Helius   »  Tue Nov 07, 2006 10:20 pm 
			
			
			
			
			fprintf to stderr do the trick. 
 
Thanks!!
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								johnmph 							 
									
		Posts:  119  		Joined:  Sat Jul 23, 2005 11:48 pm 		
		
						
						
		 
		
						
					
						 
		 
													
							
						
									
						Post 
					 
								by johnmph   »  Sat Nov 11, 2006 5:28 am 
			
			
			
			
			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 ?
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
								Helius 							 
									
		Posts:  5  		Joined:  Tue Nov 07, 2006 6:03 pm 		
		
											Location:  Madrid, Spain 
												
							
				Contact: 
				
			 
				
		 
		
						
					
						 
		 
													
							
						
									
						Post 
					 
								by Helius   »  Sat Nov 11, 2006 7:14 am 
			
			
			
			
			fprintf(stderr,... with -lstdc++ is working fine to me.