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 

Errors in the header files?

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



Joined: 18 Jun 2006
Posts: 2

PostPosted: Sun Jun 18, 2006 4:24 am    Post subject: Errors in the header files? Reply with quote

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
View user's profile Send private message
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Sun Jun 18, 2006 4:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Syco



Joined: 18 Jun 2006
Posts: 2

PostPosted: Sun Jun 18, 2006 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Sun Jun 18, 2006 5:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
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