| View previous topic :: View next topic |
| Author |
Message |
Valk
Joined: 07 Jan 2006 Posts: 3
|
Posted: Thu Mar 23, 2006 5:54 pm Post subject: [Question] C++ Objects ? |
|
|
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 |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Thu Mar 23, 2006 7:16 pm Post subject: |
|
|
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 |
|
 |
__count
Joined: 23 Mar 2006 Posts: 22
|
Posted: Thu Mar 23, 2006 8:50 pm Post subject: |
|
|
| 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 |
|
 |
|