| View previous topic :: View next topic |
| Author |
Message |
thun0r
Joined: 21 Dec 2006 Posts: 6
|
Posted: Thu Jan 04, 2007 6:40 am Post subject: Trouble with wlan sample |
|
|
Hello,
I'm trying to make the wlan sample but get the following message:
| Code: | $ 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. |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Thu Jan 04, 2007 8:55 am Post subject: |
|
|
| Use the Makefile supplied with the sample. It correctly includes -lpspwlan. |
|
| Back to top |
|
 |
thun0r
Joined: 21 Dec 2006 Posts: 6
|
Posted: Thu Jan 04, 2007 6:15 pm Post subject: |
|
|
| 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 ? |
|
| Back to top |
|
 |
harleyg

Joined: 05 Oct 2005 Posts: 123
|
Posted: Thu Jan 04, 2007 8:09 pm Post subject: |
|
|
How about no...?
Add:
LIBS = -lpspwlan |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
|
| Back to top |
|
 |
|