| View previous topic :: View next topic |
| Author |
Message |
Zeno
Joined: 27 Jun 2005 Posts: 3 Location: Saratoga, NY
|
Posted: Mon Jun 27, 2005 2:11 pm Post subject: Include errors |
|
|
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 |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Mon Jun 27, 2005 3:15 pm Post subject: |
|
|
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 |
|
 |
Zeno
Joined: 27 Jun 2005 Posts: 3 Location: Saratoga, NY
|
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Tue Jun 28, 2005 2:12 am Post subject: |
|
|
| 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 |
|
 |
PspPet
Joined: 30 Mar 2005 Posts: 210
|
Posted: Tue Jun 28, 2005 2:19 am Post subject: |
|
|
> 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 |
|
 |
Zeno
Joined: 27 Jun 2005 Posts: 3 Location: Saratoga, NY
|
|
| Back to top |
|
 |
|