Discuss the development of new homebrew software, tools and libraries.
	Moderators:  cheriff , TyRaNiD 
			
		
		
			
				
																			
								thun0r 							 
									
		Posts:  6 Joined:  Thu Dec 21, 2006 6:03 am 
		
						
					
													
							
						
									
						Post 
					 
								by thun0r  Thu Jan 04, 2007 6:40 am 
			
			
			
			
			Hello,
I'm trying to make the wlan sample but get the following message:
Code: Select all 
$ make kxploit
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/
pspdev/psp/sdk/lib   main.o  -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk
-lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspus
er -lpspkernel -o wlan.elf
main.o: In function `main':
main.c:(.text+0x134): undefined reference to `sceWlanGetSwitchState'
main.c:(.text+0x150): undefined reference to `sceWlanDevIsPowerOn'
main.c:(.text+0x16c): undefined reference to `sceWlanGetEtherAddr'
main.c:(.text+0x1a4): undefined reference to `sceWlanGetSwitchState'
collect2: ld returned 1 exit status
make: *** [wlan.elf] Error 1
Can someone please let me know why and a fix for this please?
Thanks very much.
 
		 
				
		
		 
	 
				
		
		
			
				
																			
								jimparis 							 
									
		Posts:  1145 Joined:  Fri Jun 10, 2005 4:21 amLocation:  Boston 
		
						
					
						 
													
							
						
									
						Post 
					 
								by jimparis  Thu Jan 04, 2007 8:55 am 
			
			
			
			
			Use the Makefile supplied with the sample.  It correctly includes -lpspwlan.
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								thun0r 							 
									
		Posts:  6 Joined:  Thu Dec 21, 2006 6:03 am 
		
						
					
						 
													
							
						
									
						Post 
					 
								by thun0r  Thu Jan 04, 2007 6:15 pm 
			
			
			
			
			jimparis wrote: Use the Makefile supplied with the sample.  It correctly includes -lpspwlan.
Thanks for the reply but I did use the makefile that was in the wlan folder.
Can someone try their's and let me know if it works and if so let me know and I can pm you my email so you can send the main c and the makefile ?
Could it be anything else ?
 
		 
				
		
		 
	 
				
		
		
			
				
								harleyg 							 
									
		Posts:  123 Joined:  Wed Oct 05, 2005 6:15 am 
		
						
					
						 
													
							
						
									
						Post 
					 
								by harleyg  Thu Jan 04, 2007 8:09 pm 
			
			
			
			
			How about no...?