[Question] C++ Objects ?

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

Moderators: cheriff, TyRaNiD

Post Reply
Valk
Posts: 3
Joined: Sat Jan 07, 2006 1:52 am

[Question] C++ Objects ?

Post by Valk »

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."
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

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
__count
Posts: 22
Joined: Thu Mar 23, 2006 8:40 pm

Post by __count »

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