QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Anyone know why this happens?

This is a discussion on Anyone know why this happens? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G4 -Wall -O2 -c -o main.o main.c In file included from main.c:2: wlan.hpp:8: error: syntax error before ...

Reply
 
LinkBack Thread Tools
Old 06-30-2006, 09:39 PM   #1

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default Anyone know why this happens?

psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G4 -Wall -O2 -c -o main.o main.c
In file included from main.c:2:
wlan.hpp:8: error: syntax error before '*' token
wlan.hpp:8: warning: type defaults to 'int' in declaration of 'Wlan_getConnectionConfig s'
wlan.hpp:8: warning: data definition has no type or storage class
wlan.hpp:11: error: syntax error before '*' token
wlan.hpp:12: error: syntax error before '*' token
wlan.hpp:12: warning: type defaults to 'int' in declaration of 'Socket_connect'
wlan.hpp:12: warning: data definition has no type or storage class
wlan.hpp:13: error: syntax error before '*' token
wlan.hpp:14: error: syntax error before '*' token
wlan.hpp:14: warning: type defaults to 'int' in declaration of 'Socket_createServerSocke t'
wlan.hpp:14: warning: data definition has no type or storage class
wlan.hpp:15: error: syntax error before '*' token
wlan.hpp:15: error: syntax error before '*' token
wlan.hpp:15: warning: type defaults to 'int' in declaration of 'Socket_accept'
wlan.hpp:15: warning: data definition has no type or storage class
wlan.hpp:16: error: syntax error before '*' token
wlan.hpp:17: error: syntax error before '*' token
wlan.hpp:18: error: syntax error before '*' token
wlan.hpp:19: error: syntax error before '*' token
make: *** [main.o] Error 1

the sources are in the zip file.
Attached Files
File Type: rar wifi lib source.rar‎ (4.0 KB, 8 views)
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2006, 08:52 AM   #2
 
Join Date: Oct 2005
Posts: 543
Trader Feedback: 0
Default

you are not using pointers correctly in wlan.hpp (btw, never heard of a .hpp file, I would assume its a header file for c++?)
__________________
HELP ME HAIRY LEG!!!!

I have a 1.5 (downgraded) US PSP
[code]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
( P | S | P | - | P | r | o | g | r | a | m | m | i | n | g )
\_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
_ _ _ _ _
/ \ / \ / \ / \ / \
( A | d | m | i | n )
\_/ \_/ \_/ \_/ \_/ [/code]
nathan42100 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 12:41 AM   #3

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

Interesting... I'll c what i can do. also an hpp file is a header for a c++ file. If you have Microsoft Visual Studio installed and you have a file with the hpp extention the icon will be like the c++ file but will have the letter "h" instead of the letter "c".
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 03:21 AM   #4

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

Your compiler is probably wondering the same thing I am, which is "what the heck is a PICKS?"

Define it or change it.
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 12:32 PM   #5

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

well this is from the c\c++ source of lua, but i modified it so that it can be usable in c\c++ projects n such.
Also PICKS are the wifi connections that are available. If you have used lua for wifi or took a look at the lua wifi source then you will know what PICKS are.
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -

Last edited by alatnet; 07-02-2006 at 12:34 PM..
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 06:45 PM   #6

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

Quote:
Originally Posted by alatnet
well this is from the c\c++ source of lua, but i modified it so that it can be usable in c\c++ projects n such.
Also PICKS are the wifi connections that are available. If you have used lua for wifi or took a look at the lua wifi source then you will know what PICKS are.
Good for LUA. That doesn't change the fact that you have no definition for PICKS so you're going to keep getting that error until you add one.
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 11:30 PM   #7

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

oh u mean that picks struct... ITS IN THE F'ING HEADER!!!!!
or is in in the cpp file...
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 12:40 AM   #8

Developer
 
Join Date: Oct 2005
Posts: 408
Trader Feedback: 0
Default

Quote:
Originally Posted by alatnet
oh u mean that picks struct... ITS IN THE F'ING HEADER!!!!!
or is in in the cpp file...
If it's already defined then according to the error you're getting, the problem is between PICKS and the asterix in line 8. I can't see anything between them but maybe with a microscope you can find the offending speck.

Or define PICKS.
Samstag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 04:57 AM   #9

Developer
 
Raphael's Avatar
 
Join Date: Jan 2006
Location: Germany
Posts: 919
Trader Feedback: 0
Default

What Samstag wants to tell you: You cannot access a custom structure in a header file, if you didn't define it there or include another file with it's definition.
I your case, you define PICKS in your .cpp file, but the .hpp file has no clue about that define, because it is included *before* that typedef.
So just move your PICKS typedef into your hpp file and you're ok.
Raphael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 10:53 AM   #10

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

hmmmm... i think i tried to have picks defined in the hpp file but it gave me a lot more errors or something... I'll c what i can do.

OT: Nice Avitar Raphael, NARUTO RULES!!!
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 02:12 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us