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 

[Question] C++ Objects ?

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



Joined: 07 Jan 2006
Posts: 3

PostPosted: Thu Mar 23, 2006 5:54 pm    Post subject: [Question] C++ Objects ? Reply with quote

I installed the toolchain and ran through a few of the tutorials. I noticed none(that I could find) of them used c++ objects. I then did a bit of resource and found out the make file was using psp-gcc. I then noticed that the toolchain installed a psp-g++ with it. That got me thinking. I took my existing makefile and tried to "hack" it to use psp-g++. Needless to say, the out come was garbage. So I would like to pose a few questions to you guys:

Is practical use C++ Objects when coding for the PSP?

Is there a makefile/tutorial out that I could use in order to get C++ Objects?



P.S. I am refering to the legacy definition of "hack."
Back to top
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Thu Mar 23, 2006 7:16 pm    Post subject: Reply with quote

you can use cpp and objects for sure, as i use em too ;)
you have to add the cpp lib to your makefile

LIBS= -lstdc++

greets
lumo
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
__count



Joined: 23 Mar 2006
Posts: 22

PostPosted: Thu Mar 23, 2006 8:50 pm    Post subject: Reply with quote

LuMo wrote:
you can use cpp and objects for sure, as i use em too ;)
you have to add the cpp lib to your makefile

LIBS= -lstdc++

greets
lumo


Only if you use the C++ library (stuff like cin/cout etc). Otherwise it suffices to define the new and delete operators.
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