Errors in the header files?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Syco
Posts: 2
Joined: Sun Jun 18, 2006 4:21 am

Errors in the header files?

Post by Syco »

I tried the hello script, but when i compile i get several errors in the header files... this is one:

Image

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?
chp
Posts: 313
Joined: Wed Jun 23, 2004 7:16 am

Post by chp »

These problems with 'long long' and C++ have already been fixed in the repository. Grab a new version from there.
GE Dominator
Syco
Posts: 2
Joined: Sun Jun 18, 2006 4:21 am

Post by Syco »

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?
chp
Posts: 313
Joined: Wed Jun 23, 2004 7:16 am

Post by chp »

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
Post Reply