| View previous topic :: View next topic |
| Author |
Message |
Syco
Joined: 18 Jun 2006 Posts: 2
|
Posted: Sun Jun 18, 2006 4:24 am Post subject: Errors in the header files? |
|
|
I tried the hello script, but when i compile i get several errors in the header files... this is one:
if i fix the errors, the whole header file collaps
this is not the only file with errors...
the files i'm using came from the psp sdk 1.2 beta...
can someone help me out plz? |
|
| Back to top |
|
 |
chp
Joined: 23 Jun 2004 Posts: 313
|
Posted: Sun Jun 18, 2006 4:38 am Post subject: |
|
|
These problems with 'long long' and C++ have already been fixed in the repository. Grab a new version from there. _________________ GE Dominator |
|
| Back to top |
|
 |
Syco
Joined: 18 Jun 2006 Posts: 2
|
Posted: Sun Jun 18, 2006 12:08 pm Post subject: |
|
|
| chp wrote: | | These problems with 'long long' and C++ have already been fixed in the repository. Grab a new version from there. |
i already have the newest sdk... there are still errors in the files:
pspkernel.h, psptypes.h etc.
anyone knows the problem? |
|
| Back to top |
|
 |
chp
Joined: 23 Jun 2004 Posts: 313
|
Posted: Sun Jun 18, 2006 5:08 pm Post subject: |
|
|
You don't have the latest, since psptypes.h etc. still use 'long long' for the 64-bit datatypes, I fixed these issues myself 2 months ago. What I'm talking about is grabbing a new copy from subversion. If you use the toolchain-script this will be done for you (just make sure you delete the old toolchain or at least rename it until the new one has built properly).
Anyway, the issue is that 'long long' is not a valid type in C++ when you have a strict compiler. What you could do yourself is change it locally to use the types declared in stdint.h, these types will work with C and C++. _________________ GE Dominator |
|
| Back to top |
|
 |
|