forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Include errors

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Zeno



Joined: 27 Jun 2005
Posts: 3
Location: Saratoga, NY

PostPosted: Mon Jun 27, 2005 2:11 pm    Post subject: Include errors Reply with quote

Slightly new to PSPdev. I'm attempting to port something to PSP just to see how it goes, and I've got to this point:
Code:
$ make
psp-gcc -c -Wall -pedantic socket.c
In file included from /usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/in
clude/sys/socket.h:15,
                from socket.c:10:
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/include/cygwin/socket.h:
30: error: parse error before '__uid32_t'
In file included from /usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/sy
s-include/unistd.h:4,
                from socket.c:15:
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/sys-include/sys/unistd.h
: In function '__declspec':
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/sys-include/sys/unistd.h


These are include files. Any idea what would be wrong?
_________________
Current list of working and non-working games for SNES on PSP - WikiGamers
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Mon Jun 27, 2005 3:15 pm    Post subject: Reply with quote

It included the files correctly... read this

Code:
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/include/cygwin/socket.h:
30: error: parse error before '__uid32_t'


You have a parse error right there. Check out the code at that point or google it... maybe it's something known. The other stuff is to just let you know how the compiler got to that point.
Back to top
View user's profile Send private message AIM Address
Zeno



Joined: 27 Jun 2005
Posts: 3
Location: Saratoga, NY

PostPosted: Tue Jun 28, 2005 2:04 am    Post subject: Reply with quote

Yes I saw that and that's what I'm asking about. The include files are fine... never changed. But I'll post the line here/look at the line in socket.h
_________________
Current list of working and non-working games for SNES on PSP - WikiGamers
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
crazyc



Joined: 17 Jun 2005
Posts: 410

PostPosted: Tue Jun 28, 2005 2:12 am    Post subject: Reply with quote

Including cygwin's socket.h (assuming that is what you are doing) will do you no good as there is no socket implementation for the psp yet.
Back to top
View user's profile Send private message
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Tue Jun 28, 2005 2:19 am    Post subject: Reply with quote

> Including cygwin's socket.h (assuming that is what you are doing) will do you no good ....
True.

> ...as there is no socket implementation for the psp yet.
FWIW: the "sceNetInet" library is very very similar to Berkeley sockets

#define socket sceNetInetSocket
#define sendto sceNetInetSendto
... [you get the point]
http://pspdev.ofcode.com/api.php?type=2&id=201

The "sockaddr" and other types are a little non-standard, but very close.
So if you need socket.h for porting your app, the future looks promising. For now, remove the header.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Zeno



Joined: 27 Jun 2005
Posts: 3
Location: Saratoga, NY

PostPosted: Tue Jun 28, 2005 6:36 am    Post subject: Reply with quote

I figured it'd be something like that. Alright time to find another project to port.
_________________
Current list of working and non-working games for SNES on PSP - WikiGamers
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group