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 

Can't compile a c++ project with OSLib

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



Joined: 04 Dec 2005
Posts: 22

PostPosted: Wed Jun 21, 2006 6:07 am    Post subject: Can't compile a c++ project with OSLib Reply with quote

Hi everyone
I have a little problem OSLib. I would like to do my project in C++ but when i compile it, i've got an error saying that type bool is redefined in oslib.h. That's true and i want to do #ifdef or just leave the redefintion in the oslib.H but may i?
Back to top
View user's profile Send private message
Brunni



Joined: 08 Oct 2005
Posts: 186

PostPosted: Fri Jun 23, 2006 10:38 pm    Post subject: Reply with quote

That's my fault, I've still not released the fix for C++ in OSLib. I'll release a patch soon.
Anyway you can comment the bool typedef, but you also have to add extern "C" surrounding functions prototypes.
_________________
Sorry for my bad english
Oldschool library for PSP - PC version released
Back to top
View user's profile Send private message
drcd



Joined: 04 Dec 2005
Posts: 22

PostPosted: Fri Jun 23, 2006 10:57 pm    Post subject: Reply with quote

Ok thx.
Great lib!!!
Back to top
View user's profile Send private message
drcd



Joined: 04 Dec 2005
Posts: 22

PostPosted: Sat Jun 24, 2006 5:17 am    Post subject: Reply with quote

Brunni i have another problem. I deleted the typedef and i put extern "C" for the include but now when i compile your sample, i have got a multiple definition of oslpowercallback and now i can't delete it cause it's in the .o.
Back to top
View user's profile Send private message
Brunni



Joined: 08 Oct 2005
Posts: 186

PostPosted: Sat Jun 24, 2006 8:05 am    Post subject: Reply with quote

I don't know then. But it works with the new version, I'll try to release at least an intermediate version tomorrow ;-)
_________________
Sorry for my bad english
Oldschool library for PSP - PC version released
Back to top
View user's profile Send private message
Brunni



Joined: 08 Oct 2005
Posts: 186

PostPosted: Sun Jun 25, 2006 7:13 pm    Post subject: Reply with quote

New version released. C++ should be okay now :-)
_________________
Sorry for my bad english
Oldschool library for PSP - PC version released
Back to top
View user's profile Send private message
drcd



Joined: 04 Dec 2005
Posts: 22

PostPosted: Sun Jun 25, 2006 7:29 pm    Post subject: Reply with quote

Héhé thx.
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