| View previous topic :: View next topic |
| Author |
Message |
Hale

Joined: 29 Apr 2006 Posts: 9 Location: Gainesville, FL
|
Posted: Sat Apr 29, 2006 4:26 pm Post subject: c++ question |
|
|
Hi Hi Hi Hi Hi
I'm psyched about learning to code w/ my psp an I've completed a couple of yeldarb's tutorials,( http://www.scriptscribbler.com/psp/tutorials ) but his are in C and LUA and while I intend to later familiarize myself with these languages, I've got a pretty good foundation with C++ at the moment and would prefer using that for my first original programs.
Now, I've set up cygwin, updated it, installed the psp toolchain and all the preliminary stuff as well as compiled a few programs by following allong w/ the tutorials, but at this point, I'd like to swtich over to C++. HOW EXACTLY should I do this? Is there anything I need to change or include within the makefile or headings of my source? |
|
| Back to top |
|
 |
PeterM
Joined: 31 Dec 2005 Posts: 125 Location: Edinburgh, UK
|
Posted: Sat Apr 29, 2006 11:47 pm Post subject: |
|
|
You really need to learn programming on a PC before going for the PSP. Otherwise you're letting yourself in for lots of pain and late nights.
Try googling for "C++ FAQ Lite", "Thinking in C++" to learn C++. |
|
| Back to top |
|
 |
Hale

Joined: 29 Apr 2006 Posts: 9 Location: Gainesville, FL
|
Posted: Sun Apr 30, 2006 2:45 am Post subject: |
|
|
Granted I'm still an ameture, but I know the basic ins and outs of C++ already as well as most of the early concepts. I've compiled about 40 original (and pretty useless) programs for the pc via the programming course at my collge which was a breeze.
my questions were more directed at the process of compiling for the psp, using cygwin. I guess I should just experiment w/ it to find out.
Thanks for the links though. |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Sun Apr 30, 2006 5:37 am Post subject: |
|
|
just include this in your makefile
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
LIBS = -lstdc++
make sure -lstdc++ is after all your pspsdk libs _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
Hale

Joined: 29 Apr 2006 Posts: 9 Location: Gainesville, FL
|
Posted: Sun Apr 30, 2006 6:22 am Post subject: |
|
|
| thanks =) I'll try making something right now. |
|
| Back to top |
|
 |
|