![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() PSP Developer
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
|
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.
__________________
![]() "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 - |
|
|
|
|
|
#2 |
![]() |
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] |
|
|
|
|
|
#3 |
![]() ![]() PSP Developer
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
|
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 - |
|
|
|
|
|
#5 |
![]() ![]() PSP Developer
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
|
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.. |
|
|
|
|
|
#6 | |
![]() ![]() Developer
|
Quote:
|
|
|
|
|
|
|
#7 |
![]() ![]() PSP Developer
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
|
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 - |
|
|
|
|
|
#8 | |
![]() ![]() Developer
|
Quote:
Or define PICKS. |
|
|
|
|
|
|
#9 |
![]() ![]() Developer
|
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. |
|
|
|
|
|
#10 |
![]() ![]() PSP Developer
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
|
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 - |
|
|
|
![]() |
| Thread Tools | |
|
|